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 much ram can a 64 bit system use?

529


List the issues related to the handheld system.

567


How does the cpu and the ram communicate?

557


What are the types of files?

530


Define scheduling in OS.

668






Tell me what has triggered the need for multitasking in pcs?

532


Is it possible to have a deadlock involving only one process?

578


Explain booting the system and bootstrap program in operating system.

509


What is 32 bit operating system?

539


What is a 32 bit integer?

587


How do you tell if your computer is 32 or 64 bit?

484


How many os can be installed in a pc?

546


Can a 64 bit computer run 32 bit programs?

500


What is LiveLock?

652


What is a sector?

532