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
What is sin_addr?
Explain busy waiting in operating system (os)?
What are the four common types of files?
What do you mean by parallel processing?
What are the advantages of multithreaded programming?
Explain bootstrap program in operating system.
Explain what is meant by heap?
Why is it that a single, all – encompassing metric cannot be developed for programme complexity or programme quality?
How do I uninstall remnants of uninstalled programs?
What are the pros and cons of using circuit switching?
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?
What is the difference between shared memory and distributed memory?
Can chkdsk damage a hard drive?
What is dynamic scheduling in operating system (os)?
Discuss a Thread Life Cycle?