Which of the following statement uses only 1 signal?

Which of the following statement uses only 1 signal?
A. WAIT FOR
B. WAIT UNTIL
C. WAIT ON
D. WAIT UNTIL and WAIT FOR
 
Answer: b
Explanation: In the case of WAIT UNTIL statement, there can be more than one condition(using logical operators) but all conditions can use the same signal only. WAIT ON, on the other hand, accepts multiple signals. So, if a process has only one WAIT UNTIL statement then it can be concluded that the process is sensitive to only one signal.
 

Tìm kiếm

Back
Top