All mock tests are FREE till 31 December — register to save your progress
Unit 5 · System Software and Operating System UGC NET January 2017 Paper-2

Three processes share a single counting semaphore S whose initial value is 1. All three execute wait(S) one after another, in the order P2, P1, P3. After this, P2 exits its critical section by executing signal(S), and then P1 exits by executing signal(S). What is the value of S after these five operations?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. (A) 0

More System Software and Operating System questions