Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what are latest technologies ? and how will keep yourself up to date ?

2881


Is deepin os stable?

999


How do I merge folders on mac?

1004


What are Odm Commands.

1122


Is google an operating system?

943


Can I install chrome os on my laptop?

944


What are the Types Of Vg & Explain About Them?

981


How do I clean up and speed up my computer?

950


What is difference between kernel and os?

1032


What's the best operating system?

1052


What is the name of first operating system?

927


How do you crash a computer?

1015


Why is android better than ios?

974


What do you mean by Run time Errors?

1168


Explain the term shell.

1001