1,427 views
2 votes
2 votes
Semaphore is used to enforce Mutual Exclusion and Synchronization between processes interacting over shared data and variables. Which of the following statements is true about semaphores in this regard?

(a) The Operations SIGNAL(S) & WAIT(S) needs to be atomic.

(b) A process exiting the CS will call SIGNAL(S)

c) ‘Busy-Wait’ solutions to the Critical Section are typically implemented using machine instructions that execute in the Kernal mode

(d) all of the above

1 Answer

Best answer
2 votes
2 votes
Only 1 needs to be true always. But "typically" in option 3 means it is also true. Busy-Wait can be done using Though there is no strict requirement to do a signal after CS, assuming it got a lock, the process has to release it. So, it also becomes true. So, I think D is the best choice.
selected by

Related questions

0 votes
0 votes
1 answer
1
ajayraho asked Oct 23, 2022
925 views
What is the significance of infinite loop that is written in every example of process synchronisation? What would happen if there wasn't any infinite loop?
3 votes
3 votes
0 answers
2
iarnav asked Sep 28, 2018
804 views
Any implementation of a critical section requires the use of an indivisible machine- instruction ,such as test-and-set?Is the above statement True or False?