What is a semaphore?

Answer Posted / chinnadurai.s

Synchronization tool that does not require busy waiting
Semaphore S–integer variable
Two standard operations modify S: wait()and signal()
Originally called P()andV()
Less complicated
Can only be accessed via two indivisible (atomic) operations

wait (S)
{
while S <= 0;
// no-op
S--;
}
&#61548;signal (S)
{
S++;
}

Is This Answer Correct ?    23 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is gnu os?

549


What is the next microsoft operating system?

560


Can I factory reset my laptop without a recovery disc?

537


What does the g in gnu stand for?

540


How do you fix a computer that won't start up?

506






Do cores matter for gaming?

546


What's the best operating system?

579


Is the g in gnu silent?

529


What is the name of first operating system?

506


Will disk cleanup delete my files?

507


Dear All, When the patches are installed in the server OS, how will we know that which patch is the latest patch?

1725


How do you fix a crashed computer?

601


what are latest technologies ? and how will keep yourself up to date ?

2433


Can I delete old updates to free up disk space?

513


Why context switching is overhead?

598