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...

what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES???

Answer Posted / sachin dohre

Working of Semaphore is Atomic i.e till semaphore released
no change in shared memory could occur,, while in case of
variables it could be changed while context switching

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the general form of function in c?

1021


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1247


How can you avoid including a header more than once?

983


How can I automatically locate a programs configuration files in the same directory as the executable?

1167


What are valid signatures for the Main function?

1226


What is wrong with this declaration?

1105


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1737


What is the use of gets and puts?

1028


How reliable are floating-point comparisons?

1097


Did c have any year 2000 problems?

1112


What is an lvalue in c?

1124


What is a const pointer?

1117


What is wrong with this initialization?

1005


How do I get a null pointer in my programs?

1113


How many types of operator or there in c?

1095