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

How do you start up a computer?

545


What are Odm Commands.

632


What are go channels?

574


Can I install chrome os on my laptop?

551


What is the next microsoft operating system?

565






What is difference between kernel and os?

567


What causes a computer not to boot up?

486


How do you reset the bios?

553


What is difference between post and patch?

586


what are latest technologies ? and how will keep yourself up to date ?

2445


Difference Between Jfs & Jfs2?

612


Can a laptop have both ssd and hdd?

644


What is an example of a network operating system?

503


Does a disk cleanup delete everything?

587


describe the situation in which priority inversion can occur

921