Two processes, P1 and P2, need to access a critical section of code. Consider the following synchronization construct used by the processes.Here, w1 and w2 have shared variables, which are initialized to false. Which one of the following statements is TRUE about the above construct?
A. It does not ensure mutual exclusion
B. It does not ensure bounded waiting
C. It requires that processes enter the critical section in strict alternation
D. It does not prevent deadlocks but ensures mutual exclusion
查看答案
What will happen if a non-recursive mutex is locked more than once?
A. Starvation
B. Deadlock
C. Aging
D. Signaling
What is a semaphore?
A. is a binary mutex
B. must be accessed from only one process
C. can be accessed from multiple processes
D. none of the mentioned
What is a mutex?
A. is a binary mutex
B. must be accessed from only one process
C. can be accessed from multiple processes
D. none of the mentioned
At a particular time of computation the value of a counting semaphore is 7.Then 20 P operations and 15 V operations were completed on this semaphore. The resulting value of the semaphore is?
A. 42
B. 2
C. 7
D. 12