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

What are differences between ram and rom?

546


What is starvation and aging?

685


What are the two types of file system?

561


What is a binary semaphore?

541


What is the difference between internal commands and external commands?

571






Explain the concept of deadlocks? Why they are used?

632


What are necessary conditions for dead lock?

575


What are the advantages of multithreaded programming?

549


What is virtual memory and where it exhist ?

653


What are the 5 stages of chkdsk?

508


Explain briefly what is meant by trap and a trapdoor?

625


Can ram affect fps?

510


Can I have two operating systems on one computer?

538


What are dynamic linking?

573


What is a layered approach and what is its advantage?

581