5,486 views
1 1 vote

A semaphore count of negative n means (S=-n) that the queue contains…….waiting process

  1. n+1
  2. n
  3. n-1
  4. 0

1 Answer

Best answer
5 5 votes

Semaphore count of negative n means that the queue contains n waiting processes

and nonnegative count means that the queue of waiting processes is empty .

• selected by
Position:
Show:

Related questions

3 3 votes
2 2 answers
121
121 views
GO Classes asked Jul 29
121 views
A counting semaphore $S$ is initialized to $2$.Three processes execute $\texttt{wait(S)}$ one after another. No process executes $\texttt{signal(S)}$ during this time.Ass...
3 3 votes
1 answers 1 answer
5.2k
5.2k views
ashutoshaay26 asked Sep 3, 2017
5,202 views
Assume that ‘C’ is a Counting Semaphore initialized to value ‘10’. Consider the followingprogram segment:P(C); V(C); P(C); P(C); P(C); V(C); V(C) V(C); V(C); V(C); P(C); ...
0 0 votes
1 1 answer
1.1k
1.1k views
rakeshgsharma asked Aug 23, 2017
1,051 views
Struct Semaphore{ int value; Queue type L;} Down (Semaphore S){ S.value = S.value -1; if(S.value<0) { pu...