What is a semaphore?

Answer Posted / kondepati

->synchronization tool that does not require busy writing.
->semaphore S-integer variable
->can only be accessesd via two indivisible(atomic) operations
wait(S):while S<=0 do no-op;
S:=s-1;
signal(S):S+1;
semaphores are of two types

COUNTING SEMAPHORE-integer value can range over an
unrestricted domain.

BINARY SEMAPHORE-integer value can range only between 0 and
1;can be simpler to implement.

can implement a counting semaphore S as a binary semaphore.

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the next microsoft operating system?

749


How do I compare plugins in notepad ++?

757


Do cores matter for gaming?

750


why we make plex offline online in vxvm?

2654


Do simultaneous downloads take longer?

731


How To Enable & Disable Quorum?

824


What is the name of first operating system?

695


How many os are there?

761


The flushing policy is described in the subsection on process migration strategies: a) From the perspective of the source, which other strategy does flushing resembles? b) From the perspective of the target, which other strategy does flushing resemble?

2043


What is Cycle Stealing in OS?

838


What Command To Take Backup Other Vg's?

823


How do you say gnu?

736


Who started gnu?

904


Why is android better than ios?

767


What is the shortcut key to refresh laptop?

716