If semaphore variable is 8 after 6 wait operations and 3
signal operations.what is semaphore
Answer Posted / deepika
let us assume semaphore value to be x before these operations.
Then 6 wait operations reduce its value by 6. So
new value of semaphore = x-6
3 signal operation increases the value by 3. So
new value is now = x-6+3
= x-3
But new value is 8. Thus
x-3=8
x=11
Hence our answer and semaphore value is 11.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Explian T - Factor?
What is an example of a network operating system?
what kind of operating(s)systems would be needed (and explain why) in an environment where there exist various cluster of networks which are all interconnected in different geographical areas with strong emphasis on online applicating process.
What is the next microsoft operating system?
How do I clean up and speed up my computer?
what are latest technologies ? and how will keep yourself up to date ?
How do you find out computer specs?
How do you reset your computer?
How much memory do I need on my laptop?
What causes a corrupt operating system?
Is i3 good for gaming?
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 compare plugins in notepad ++?
How much ram do I need for streaming?
Why context switching is overhead?