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
why we make plex offline online in vxvm?
What are different errors encountered while compiling?
What does the g in gnu stand for?
Can I restore my computer to yesterday?
Can you have concurrency but not parallelism?
How do I compare plugins in notepad ++?
Which one is the best operating system?
What is the fastest computer operating system?
Is system restore bad for your computer?
How do you find out computer specs?
What do you know about the latest android version Lollipop?
What are go channels?
What Command To Restore Backup Of Non - Rootvg?
What happens when I reset my computer?
Explian T - Factor?