Q34
MCQ2 marks, −0.67Each 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.
Loading…