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
Which is your favorite editor, shell, programming shell and why?
How do I run wget?
What Command To Take Backup Other Vg's?
What does kernel panic mean?
Explain about memory management in operating system.
What is the meaning of slosh login in nfs?
What is the name of first operating system?
How do you fix a crashed computer?
What is a file in computer terms?
How do you pronounce gnu?
What are Odm Commands.
When I startup my computer the screen is black?
How do I upgrade my operating system?
Can we kill init process?
How do I run a curl command?