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 compile time Errors?

1049


Which one is the first operating system?

914


How do I compare files in notepad ++?

938


What os is used at google?

1001


Explain the term shell.

965


What is the latest version of google browser?

1014


What causes a computer not to boot up?

863


What is the difference between the OS which you use and other OSs?

960


What is Cycle Stealing in OS?

1012


How do you find out computer specs?

874


How do I clean up and speed up my computer?

906


What is the most powerful computer in the world 2019?

930


What is microsoft spreadsheet compare?

930


How do I run a curl command?

1067


Can you have concurrency but not parallelism?

899