edited by
25,027 views
51 votes
51 votes

Each Process $P_i, i = 1\ldots 9$ is coded as follows

repeat 
    P(mutex)
    {Critical section}
    V(mutex)
forever

The code for $P_{10}$ is identical except it uses V(mutex) in place of P(mutex). What is the largest number of processes that can be inside the critical section at any moment?

  1. $1$
  2. $2$
  3. $3$
  4. None
edited by

14 Answers

–2 votes
–2 votes
option C

one process is executing critical section. all other are waiting. when P10 comes and increases semaphor value then the first process waiting in queue and P10 both comes into critical section. So there will be max 3 processes.
Answer:

Related questions

48 votes
48 votes
4 answers
2
25 votes
25 votes
6 answers
3
Kathleen asked Sep 29, 2014
17,559 views
An operating system contains $3$ user processes each requiring $2$ units of resource $R$. The minimum number of units of $R$ such that no deadlocks will ever arise is$3$$...
24 votes
24 votes
3 answers
4
Kathleen asked Sep 29, 2014
5,708 views
The correct matching for the following pairs is:$$\small \begin{array}{cl|cl}\hline \text{(A)} &\text{Disk Scheduling} & \text{(1)} &\text{Round robin} \\\hline \text{...