Question 177Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)

Let each process Pᵢ, i=1 to 7 executes the following code. repeat

Let each process Pᵢ, i=1 to 7 executes the following code. repeat P(mutex); CS V(mutex); forever The process P₈ executes the following code: repeat V(mutex); CS V(mutex); forever What is the maximum number of processes that can be present in the critical section at any point of time? Given that the initial value of binary semaphore variable "mutex" is 1.
  1. A7
  2. B8
  3. C1
  4. D10
Show answerHide answer

Correct answer: (B) 8

From CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM)

This is question 177 of CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.