What is a semaphore?

Answer Posted / ragavendran

Semaphores are devices used to help with synchronization. If
multiple processes share a common resource, they need a way
to be able to use that resource without disrupting each
other. You want each process to be able to read from and
write to that resource uninterrupted.

A semaphore will either allow or disallow access to the
resource, depending on how it is set up. One example setup
would be a semaphore which allowed any number of processes
to read from the resource, but only one could ever be in the
process of writing to that resource at a time.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why we make plex offline online in vxvm?

2457


Can yum install rpm?

656


What is a file in computer terms?

536


what is ms configure?

1777


any body tell me what are the prob's mostly we face and send some critical prob in real time environment in Solaris and veritas (VXVM,VCS)

1809






What does download with adm mean?

577


How To Lock A User's Account?

606


Is 4 cores enough for streaming?

605


Is the g in gnu silent?

544


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

520


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

625


Which is better curl or wget?

593


Give some examples of use of thread in a single user multiprocessing system

6180


Can I factory reset my laptop without a recovery disc?

547


What is the difference between the OS which you use and other OSs?

579