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

What does root mean in computer terms?

536


Can yum install rpm?

656


what is memory managemant in Win95

624


what is ms configure?

1773


How do you say gnu?

522






Which one is the best operating system?

529


Do cores matter for gaming?

552


What's the best operating system?

596


Is chrome an operating system?

537


How do I upgrade my operating system?

556


Explian T - Factor?

657


Is kernel a os?

535


How can I increase storage on my laptop?

526


How do I compare files in notepad ++?

524


What does download with adm mean?

575