If semaphore variable is 8 after 6 wait operations and 3
signal operations.what is semaphore
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vinay
assumin it is counting semphore 6 wait operation causes semaphore value to reduce to 8-6=2 ,
then 3 signal oper make it 2+3=5
ans=5
| Is This Answer Correct ? | 4 Yes | 10 No |
What is concurrency go?
Can I delete old updates to free up disk space?
What is microsoft spreadsheet compare?
What is the most powerful server in the world?
Difference Between Jfs & Jfs2?
How do I free up disk space?
What do you mean by Run time Errors?
any body tell me what are the prob's mostly we face and send some critical prob in real time environment in Solaris and veritas (VXVM,VCS)
what is live lock,race condition,starvation?how it work and explain brifly?
Can I factory reset my laptop without a recovery disc?
DEFINE YOURSELF AT THE TIME OF INTERVIEW IN TELECOM SECTOR?
Which processor is better amd or intel?