The code that changes the value of the semaphore is ____________
A. remainder section code
B. non – critical section code
C. critical section code
D. none of the mentioned
查看答案
If the semaphore value is negative ____________
A. its magnitude is the number of processes waiting on that semaphore
B. it is invalid
C. no operation can be further performed on it until the signal operation is performed on it
D. none of the mentioned
The wait operation of the semaphore basically works on the basic _______ system call.
A. stop()
B. block()
C. hold()
D. wait()
The signal operation of the semaphore basically works on the basic _______ system call
A. continue()
B. wakeup()
C. getup()
D. start()
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