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 Command To Restore Backup Of Non - Rootvg?
Give some examples of use of thread in a single user multiprocessing system
Will disk cleanup delete my files?
How do you clear cache on a laptop?
What is the most powerful computer in the world 2019?
What is a file in os?
Where can I get a free operating system?
Why is my computer so slow?
Where do I find disk cleanup?
Directories can be implemented either as "special files" that can only be accessed in limited ways, or as ordinary data files. What are the advantages and disadvantages of each approach?
How many bytes we can send to apple push notification server in iOS operating system?
Can yum install rpm?
What is the most powerful processor?
Do cores matter for gaming?
what is multitask win95