What are counting semaphores?

Answer Posted / kiruthiga

Semaphore is a nonnegative integer count. Semaphores are
typically used to coordinate access to resources, with the
semaphore count initialized to the number of free
resources. Threads then atomically increment the count when
resources are added and atomically decrement the count when
resources are removed.

When the semaphore count becomes zero, no more resources
are present. Threads that try to decrement the semaphore
when the count is zero block until the count becomes
greater than zero.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are server systems classified?

787


How i can repair File Allocation Table?

621


How do you kill pid?

558


Give some benefits of multithreaded programming.

679


What are the 4 stages of computing?

537






What is ie tab in chrome?

593


What are various scheduling queues?

615


Explain about loader and the functions executed by them?

564


What are the three types of operating systems?

535


Can a laptop have 32gb of ram?

521


What are necessary conditions for dead lock?

588


what are the softwares helping for auditing poblems?

1503


What are the main advantages of the microkernel approach to system design?

698


Explain the reasons for process suspension?

603


What is GRUB?

593