Mutual exclusion implies that ____________
A. if a process is executing in its critical section, then no other process must be executing in their critical sections
B. if a process is executing in its critical section, then other processes must be executing in their critical sections
C. if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
D. none of the mentioned
查看答案
Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section ____________
A. after a process has made a request to enter its critical section and before the request is granted
B. when another process is in its critical section
C. before a process has made a request to enter its critical section
D. none of the mentioned
An un-interruptible unit is known as ____________
A. single
B. atomic
C. static
D. none of the mentioned
Each process Pi, i = 0,1,2,3,……,9 is coded as followsThe code for P10 is identical except that it uses V(mutex) instead of P(mutex). What is the largest number of processes that can be inside the critical section at any moment (the mutex being initialized to 1)?
A. 1
B. 2
C. 3
D. None of the mentioned
The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initialized as S0 = 1, S1 = 0, S2 = 0.How many times will P0 print ‘0’?
At least twice
B. Exactly twice
C. Exactly thrice
D. Exactly once