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
describe the situation in which priority inversion can occur
Which is your favorite editor, shell, programming shell and why?
What is the difference between wget and curl?
What is the meaning of slosh login in nfs?
How do I clean up and speed up my laptop?
Do simultaneous downloads take longer?
i want information about real time operating systems because i have an interview tomoorow in valeo company.
Is system restore bad for your computer?
What is gnu os?
What is the most powerful server in the world?
Does redhat use yum?
What is the difference between concurrency and parallelism?
Can I factory reset my laptop without a recovery disc?
What is the g in 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....?