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 kind of operating(s)systems would be needed (and explain why) in an environment where there exist various cluster of networks which are all interconnected in different geographical areas with strong emphasis on online applicating process.

1724


Is the higher the ghz the better?

603


Is more ram better for streaming?

577


What are go channels?

647


what is ms configure?

1838






Is system restore bad for your computer?

633


How do I boot up my computer?

592


Which one is the best operating system?

611


What does download with adm mean?

646


What's the best operating system?

667


What does kernel panic mean?

650


What is the most powerful processor?

659


How do you kill a computer with command prompt?

595


How many goroutines are in a core?

633


What is the shortcut key to refresh laptop?

574