4,103 views
1 votes
1 votes

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 votes
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

Related questions

3 votes
3 votes
1 answer
1
ashutoshaay26 asked Sep 3, 2017
4,775 views
2. 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(...
0 votes
0 votes
1 answer
3
Mrityudoot asked Jan 27
240 views
Can a counting semaphore acquire a negative value?S = 2;15 P operations done, should the semaphore be 0 or -13