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 the shortcut key to refresh laptop?
Can we kill init process?
What is the difference between concurrency and parallelism?
What Command To Restore Backup Of Non - Rootvg?
Who started gnu?
1) What is an Virtual memory? 2) How do we test API's in both Windows/Linux/Unix? 3) What is an IOCTL? 4) How do you open a char device through API's? 5) What is major num/ minor num? 6) What is the max num for minor num? 7) Who gives you the major / minor numbers? 8) Reverse a string using recursive func. 9) fork/vfork/clone. 10) What does fork returns? 11) What is a zombie process? 12) What happens when a child completes before parent tries to wait for it? 13) Interrupt handlers, top-hdnl....?
What do you know about the latest android version Lollipop?
Does a disk cleanup delete everything?
How do you fix a crashed computer?
How do I clean up my computer to make it run faster?
What is the first operating system in the world?
How do you clear cache on a laptop?
What os is used at google?
How do you pronounce gnu?
Will disk cleanup delete my files?