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
What are compile time Errors?
Which one is the first operating system?
How do I compare files in notepad ++?
What os is used at google?
Explain the term shell.
What is the latest version of google browser?
What causes a computer not to boot up?
What is the difference between the OS which you use and other OSs?
What is Cycle Stealing in OS?
How do you find out computer specs?
How do I clean up and speed up my computer?
What is the most powerful computer in the world 2019?
What is microsoft spreadsheet compare?
How do I run a curl command?
Can you have concurrency but not parallelism?