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

Explain the concept of the multi-programmed operating systems?

661


Which technology does Pentium use - RISC or CISC?

566


Explain what is meant by CORE DUMPS?

591


Will my laptop run faster with more ram?

499


How does thread synchronization occur in a monitor?

546






Explain the functions of the cu and alu in the cpu of a computer.

542


Explain paging, faulting, and deadlock?

631


How are server systems classified?

769


How does dynamic loading aid in better memory space utilization?

999


How do I upgrade my excel to 64 bit?

534


How do an incremental process model and certification work together to produce high quality software? In your own words, describe the intent of certification in the clean room software engineering context.

1408


How does ecc works?

612


How do you kill pid?

543


Define scheduling in OS.

666


Explain about compiler and the functions executed by them?

576