What is a semaphore?

Answer Posted / mahi 27

"semaphore " is an integer value that provide signalling
among the process
and it is an synchronization tool
semaphores are proposed by "DIJKSTRA"
generally semaphores are divided into 2 types
they are 1.General semaphore(or)counting semaphore
2.Binary semaphore(or)Mutex
in general semaphores 2 primitives are used they are
1.semwait(s)
2.semsignal(s)
semwait() checks decrements the semaphore value if the value
becomes negative then the process executing the semwait()is
blocked other wise the process continues execution
semsignal() increments the semaphore value if the value is
less than or equal to zero then a process blocked by a
semwait()operation is unblocked

Is This Answer Correct ?    18 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I boot up my computer?

507


What do you know about the latest android version Lollipop?

541


Can kernel panic be fixed?

526


What is the g in gnu?

541


What is the difference between concurrency and parallelism?

551






What is the first operating system in the world?

546


What is startup repair on my computer?

550


How do you restart a crashed laptop?

578


What os is used at google?

521


How do I compare files in notepad ++?

518


When I startup my computer the screen is black?

526


Which one is the best operating system?

522


What is gnu os?

549


How can I clean up my computer?

549


What is the latest version of google browser?

545