In the design protocol of the critical section problem, each process must ask permission to enter the critical section in …… code; it then executes in the critical section; once it finishes executing in the critical section it enters the …… code. The process then enters the …… code.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. entry section, exit section, remainder section
Explanation
The standard critical-section protocol structures a process's code into four parts in this cycle: the entry section, where the process requests/acquires permission to enter; the critical section itself; the exit section, where it releases that permission (e.g. clears a flag or signals a semaphore) right after leaving the critical section; and finally the remainder section, covering the rest of the process's code before it loops back to request entry again. Matching this to the blanks — ask permission in the entry section, then after the critical section enter the exit section, then the remainder section — gives entry section, exit section, remainder section, option (ii).More Computer System Architecture questions
- Consider a system with five processes P0 through P4 and three resource types A, B and C, with 7, 2 and 6 total instances respectively. At t…
- The Bounded Buffer problem is also known as the ________.
- Two atomic operations permissible on semaphores are ________ and ________.
- Three processes share a single counting semaphore S whose initial value is 1. All three execute wait(S) one after another, in the order P2,…
- In the UNIX operating system, when a process creates a child process using the fork() system call, which of the following is genuinely shar…
- A system has 12 instances of a resource R shared among four processes. The maximum need and current allocation of each process are: Process…