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 chrome an operating system?

767


What is microsoft spreadsheet compare?

744


How do I free up disk space?

765


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

854


i want information about real time operating systems because i have an interview tomoorow in valeo company.

3305


What is the meaning of slosh login in nfs?

2314


why we make plex offline online in vxvm?

2664


Can yum install rpm?

860


1) What is an Virtual memory? 2) How do we test API's in both Windows/Linux/Unix? 3) What is an IOCTL? 4) How do you open a char device through API's? 5) What is major num/ minor num? 6) What is the max num for minor num? 7) Who gives you the major / minor numbers? 8) Reverse a string using recursive func. 9) fork/vfork/clone. 10) What does fork returns? 11) What is a zombie process? 12) What happens when a child completes before parent tries to wait for it? 13) Interrupt handlers, top-hdnl....?

2256


Which one is the first operating system?

737


Which is your favorite editor, shell, programming shell and why?

2329


What is difference between post and put method?

795


How do I clean up and speed up my laptop?

730


Is go garbage collected?

789


How do you clear cache on a laptop?

778