[amp_mcq option1=”semaphores” option2=”directory” option3=”critical section” option4=”mutual exclusion E. None of the above” correct=”option3″]
The correct answer is: C. critical section
A critical section is a part of a computer program where the shared memory is accessed and which should be executed invisibly. It is a section of code that must be executed atomically, without interruption, to ensure consistency of data.
Semaphores are a synchronization primitive that can be used to implement critical sections. They are used to control access to shared resources, such as memory or files.
A directory is a database that stores information about files and folders on a computer.
Mutual exclusion is a technique used to ensure that only one process can access a shared resource at a time.
None of the above is a correct answer.