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 different tasks of lexical analysis?

559


What is real time operating systems?

580


What are the 3 types of filing systems?

501


Define the difference between preemptive and nonpreemptive scheduling.

558


Why is ram also known as volatile memory?

657






Define page fault interrupt?

738


What is micro kernel approach and site its advantages?

552


When does page fault error occur?

549


What is the main thread?

521


What do you mean by a zombie process?

577


What are the different types of fragmentation?

614


What are differences between ram and rom?

528


What are the 3 types of operating systems?

522


What is synchronization? What are the different synchronization mechanisms?

534


What is difference between deadlock and starvation?

514