1.

The above implementation of barrier is incorrect. Which one of the following is true?

A. The barrier implementation is wrong due to the use of binary semaphore S
B. The barrier implementation may lead to a deadlock, if two barrier invocations are used in immediate succession
C. Lines 6 to 10 need not be inside a critical section
D. The barrier implementation is correct, if there are only two processes instead of three
Answer» C. Lines 6 to 10 need not be inside a critical section


Discussion

No Comment Found

Related MCQs