Q34
MCQ2 marks, −0.67Operating systemsEach of a set of processes executes the following code using two semaphores and initialized to and , respectively. Assume that is a shared variable initialized to and not used in CODE SECTION P.
wait(a); count=count+1;
if (count==n) signal (b);
signal (a); wait (b) ; signal (b);
What does the code achieve?
Sign in to save attempts.
Keys: A–D or 1–4 choose, Enter checks, ← → move between questions.
Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.