Answer Posted / jethva_trupti
A semaphore, a new variable type.
A semaphore could have the value 0,indicating that no
wakeups were saved, or some positive values if one or more
wakeups were pending.
a semaphore s is an integer variable that apart from
initialization, is accesssed only through two standard
atomic operations, wait and signal. these operations were
orignially termed p(for wait to test) and v(for signal to
increment).
The classical defination of wait in psedocode is
wait(s)
{
while(s<=0)
;// no-op
s--;
}
The classical defination of signal in psedocode is
signal(s)
{
s++;
}
Modification to the integer value of smaphore in wait and
signal operations must be executed individually.
that is, when one process modifies the semaphore value no
other process can simultaneously modifiy that same
semaphore value.
| Is This Answer Correct ? | 68 Yes | 11 No |
Post New Answer View All Answers
How do I run a curl command?
Difference Between Jfs & Jfs2?
Can I install chrome os on my laptop?
Is chrome an operating system?
What is the first operating system in the world?
How do I make a pdf file on my laptop?
What is the name of first operating system?
What is the most powerful computer in the world 2019?
How do I compare plugins in notepad ++?
Which one is the best operating system?
How do I upgrade my operating system?
iam free downloading the KK Dictionery to my system but that is not installed yet. can anybody tell be why this happen and what the system have to install the software.
How do I clean up and speed up my laptop?
Is the higher the ghz the better?
Explian T - Factor?