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
what is ms configure?
what is multitask win95
Explian T - Factor?
What are Odm Commands.
What is the fastest computer operating system?
How do I combine multiple folders on a mac?
Which processor is better amd or intel?
Why does kernel panic occur?
How much memory do I need on my laptop?
How do I free up disk space?
How To Convert A Normal Vg To Big & Scalable Vg And Also Big To Scalable Vg?
Why context switching is overhead?
What are positional parameters?
What os is used at google?
What does kernel panic mean?