in Operating System retagged by
11,628 views
2 votes
2 votes

Which of the following statements about semaphores is true?

  1. $P$ and $V$ operations should be indivisible operations.
  2. A semaphore implementation should guarantee that threads do not suffer indefinite postponement.
  3. If several threads attempt a $P(S)$ operation simultaneously, only one thread should be allowed to proceed.
  4. All of the above.
in Operating System retagged by
by
11.6k views

1 Answer

3 votes
3 votes
wait and signal both are different individual operation  ,in second point talk about deadlock or starvation which semaphore guaranteed and third point talk about mutual exclusion  so all points are correct

Option (D)  All of the above

2 Comments

what is meant by individual operations here(in the first option) ? actually semaphores should be executed atomically dose this mean individual here.
0
0
Yes indivisible means atomic here
0
0
Answer:

Related questions