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

what is multitask win95

789


How do you remove a virus from your computer?

716


How do I compare files in notepad ++?

730


What causes a computer not to boot up?

684


How do you clear cache on a laptop?

756


Can I put an ssd in my old computer?

787


What is gnu os?

754


What is a Kernel?

788


What Command To Take Backup Other Vg's?

811


Is chrome os better than windows 10?

717


How do you fix a crashed computer?

778


How do I clean up my computer to make it run faster?

718


Why is it called gnu?

720


Explain about memory management in operating system.

809


How do I upgrade my operating system?

771