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

difference between semaphores and mutex?

Answer Posted / selvakumar

"Mutexes are typically used to serialise access to a
section of re-entrant code that cannot be executed
concurrently by more than one thread. A mutex object only
allows one thread into a controlled section, forcing other
threads which attempt to gain access to that section to
wait until the first thread has exited from that section."

"A semaphore restricts the number of simultaneous users of
a shared resource up to a maximum number. Threads can
request access to the resource (decrementing the
semaphore), and can signal that they have finished using
the resource (incrementing the semaphore)."

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

1095


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1907


What are the disadvantages of c language?

1191


When should a type cast not be used?

1060


Tell me is null always defined as 0(zero)?

1087


What is the function of this pointer?

1331


What is a char in c?

993


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1061


Explain the advantages and disadvantages of macros.

1099


Tell me what is the purpose of 'register' keyword in c language?

1008


What is sizeof int?

1095


Describe static function with its usage?

1206


Why should I use standard library functions instead of writing my own?

1268


What is s or c?

1061


What is New modifiers?

1125