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 fastest computer operating system?

505


Can I factory reset my laptop without a recovery disc?

537


What is the most powerful computer in the world 2019?

549


What is an example of a network operating system?

486


What is the best memory for a laptop?

554






What is concurrency go?

567


what is memory managemant in Win95

612


What does root mean in computer terms?

523


How do you fix a computer that won't start up?

506


How do I make a pdf file on my laptop?

503


What is a file in computer terms?

524


What should I consider when buying a laptop?

533


How do I clean up and speed up my computer?

517


What are positional parameters?

480


What is Cycle Stealing in OS?

592