Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is sin_addr?

1021


Explain busy waiting in operating system (os)?

1133


What are the four common types of files?

1091


What do you mean by parallel processing?

1113


What are the advantages of multithreaded programming?

1060


Explain bootstrap program in operating system.

1134


Explain what is meant by heap?

1184


Why is it that a single, all – encompassing metric cannot be developed for programme complexity or programme quality?

2176


How do I uninstall remnants of uninstalled programs?

974


What are the pros and cons of using circuit switching?

1259


Some omeone on campus calls and says they have a new Mac. They've just pulled it out of the box and want to plug it into the campus network. What might they need to set to make this work?

1319


What is the difference between shared memory and distributed memory?

1176


Can chkdsk damage a hard drive?

1190


What is dynamic scheduling in operating system (os)?

1062


Discuss a Thread Life Cycle?

1137