What are counting semaphores?

Answer Posted / swetcha

Counting semaphore -Locks a shared resource against
simultaneous access by multiple threads
A counting semaphore is a generalization of a mutex
semaphore that locks a shared resource against simultaneous
access by multiple threads. All resource allocation
functions, such as wait() and post() , take an optional
parameter defining the number of resources to allocate or
deallocate.

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does ram affect excel performance?

702


What are the 5 basic filing systems?

756


What is throughput?

779


Draw the states of a process in an OS.

835


How do I make a bootable usb drive?

728


Give an example of Priority Inversion in Scheduling. What are the consequences of Priority Inversion?

752


Can I install 64 bit on x86?

675


Why paging is used in os?

763


Explain an idle thread?

781


What is the max ram for a 64 bit?

703


What is context in operating system?

710


What do you know about interrupt?

813


Explain the concept of the multi-processor systems or parallel systems?

763


What is the major difference between Thread.start() & Thread?run() method?

828


What are the pros and cons of using circuit switching?

856