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 do you crash a computer?
How do I clean up and speed up my computer?
What are the Types Of Vg & Explain About Them?
discuss the procedures to evaluate disk excess time
Which is better curl or wget?
Can I factory reset my laptop without a recovery disc?
What causes a computer not to boot up?
Is i3 good for gaming?
How do I run a curl command?
What happens if you turn off computer during update?
How do I make a pdf file on my laptop?
How do you remove a virus from your computer?
How much memory do I need on my laptop?
How do I clean up my computer to make it run faster?
How do you find out computer specs?