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 difference between mutex and semaphore?

Answer Posted / henry denial s

"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 mutex is really a semaphore with value 1

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 ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What was microsoft's first operating system?

1148


Where are the global variables stored?

1147


Why partitioning and formatting is a prerequisite to installing an operating system?

1599


Is 100 cpu usage bad?

998


What is the difference between ie and edge?

1111


What is belady's anomaly?

992


Do hackers use mac or pc?

1004


What is the difference between logical address space and physical address space?

1135


What are necessary conditions for dead lock?

1100


What is medium term scheduling in operating system (os)?

1051


How do I stop chkdsk at startup?

1070


What command is used to remove the password assigned to a group?

1153


What is short term scheduler in operating system (os)?

1154


State the advantages of segmented paging over pure segmentation?

1189


Explain bootstrap program in operating system.

1071