retagged by
11,631 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.
retagged by

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
Answer:

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
1 answer
2
admin asked Mar 31, 2020
3,437 views
Copying a process from memory to disk to allow space for other processes is called:SwappingDemand PagingDeadlockPage Fault
1 votes
1 votes
2 answers
3
admin asked Mar 31, 2020
2,632 views
The degree of multi programming is controlled by:CPU SchedulerLong-term SchedulerContext SwitchingMedium term Scheduler
0 votes
0 votes
1 answer
4
admin asked Mar 31, 2020
6,443 views
Given a class named student, which of the following is a valid constructor declaration for the class?Student student(){}Private final student(){}Student(student s){}Void ...