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

Is the higher the ghz the better?

519


Is google an operating system?

513


What is the most powerful server in the world?

559


Can you just explain about memory management in iOS?

628


Which one is the first operating system?

521






What is a Safe State and what is its use in deadlock avoidance?

575


what is ms configure?

1765


What should I consider when buying a laptop?

533


What is the first operating system in the world?

546


What causes a corrupt operating system?

519


What Command To Take Backup Other Vg's?

620


How can I reformat my laptop?

526


Is microsoft coming out with a new operating system?

518


How do I run wget?

520


Is deepin os stable?

542