What is a semaphore?

Answer Posted / muthukumar

semaphore is mutual execution problem presented in the last
section are not easy to more complex problems.
Semaphore is a Only Non Negative integer variable.
semaphore initialized value in 1.
Semaphore only Through Two Standard atomic Operation
P(wait)
s=s-1

and
V(signal)
s=s+1

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better curl or wget?

590


What is concurrency go?

574


Will disk cleanup delete my files?

515


Can a laptop have both ssd and hdd?

641


How do I boot up my computer?

517






What's the best operating system?

592


Where do I find disk cleanup?

542


1) What is an Virtual memory? 2) How do we test API's in both Windows/Linux/Unix? 3) What is an IOCTL? 4) How do you open a char device through API's? 5) What is major num/ minor num? 6) What is the max num for minor num? 7) Who gives you the major / minor numbers? 8) Reverse a string using recursive func. 9) fork/vfork/clone. 10) What does fork returns? 11) What is a zombie process? 12) What happens when a child completes before parent tries to wait for it? 13) Interrupt handlers, top-hdnl....?

2045


Why is android better than ios?

553


How much ram do I need for streaming?

559


Where can I get a free operating system?

549


Explian T - Factor?

657


How do I run wget?

528


How many bytes we can send to apple push notification server in iOS operating system?

618


Can I restore my computer to yesterday?

542