Consider the methods used by processes P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1 and S2 are randomly assigned.Which of the following statements describes properties achieved?
A. Mutual exclusion but not progress
B. Progress but not mutual exclusion
C. Neither mutual exclusion nor progress
D. Both mutual exclusion and progress
查看答案
A monitor is a type of ____________
A. semaphore
B. low level synchronization construct
C. high level synchronization construct
D. none of the mentioned
The monitor construct ensures that ____________
A. only one process can be active at a time within the monitor
B. n number of processes can be active at a time within the monitor (n being greater than 1)
C. the queue has only one process in it at a time
D. all of the mentioned
What are the operations that can be invoked on a condition variable?
A. wait & signal
B. hold & wait
C. signal & hold
D. continue & signal
在设计凸轮机构时,滚子半径必须大于凸轮理论轮廓外凸部分的最小曲率半径。
A. 对
B. 错