Answer Posted / thangavelu t
semaphore is integer variable that used to achieve mutual
exclusion.
it always indicates no of resource instances available.
programming example:
code
{
acquire(s);
critical region;
release(s);
}
acquire(semaphore s)
{
while(s==0);
s--;
}
release(semaphore s)
{
s++;
}
init(semaphore s,int instances)
{
s=instances;//initializes to no of resources instances
}
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
How much ram do I need for streaming?
How do you say gnu?
In the token-passing mutual exclusion algorithm, is the timestamping used to reset clocks and correct drifts, as in the distributed queue algorithms? if not, what is the function of the timestamping?
Which processor is better amd or intel?
Is the g in gnu silent?
How To Enable & Disable Quorum?
Do simultaneous downloads take longer?
What is difference between post and patch?
How do you reset the bios?
What is the difference between wget and curl?
Who started gnu?
How To Convert A Normal Vg To Big & Scalable Vg And Also Big To Scalable Vg?
What is a file in os?
Is microsoft coming out with a new operating system?
What happens when I reset my computer?