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

Can we kill init process?

788


why we make plex offline online in vxvm?

2628


What do you know about the latest android version Lollipop?

720


What is the shortcut key to refresh laptop?

689


What is the first operating system in the world?

755


Is i3 good for gaming?

748


How do I combine multiple folders on a mac?

731


What is the difference between the OS which you use and other OSs?

763


What is the most powerful server in the world?

784


Can yum install rpm?

828


What is an example of a network operating system?

675


How do I boot up my computer?

677


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?

4211


Which one is the best operating system?

721


Difference Between Jfs & Jfs2?

780