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's the difference between semaphore , critical sections and mutex?



What's the difference between semaphore , critical sections and mutex?..

Answer / rajji

Semaphore and mutex are the synchronising mechanisms for shared resources. And critical region is part of synchonizing schemes, means it's a part of process sections.

Normally every process will have 3 sections 1.Entry section 2.critical section 3. exit section

In these critical section is more important which tells us how to manage resources like.
In semaphores if one thread is waiting for resource then other thread which has the resource can signal the waiting thread.
In Mutex if one thead is waiting for resource then it has to wait till resource get released. This is the best mechanism for multithreading.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Operating Systems General Concepts Interview Questions

Explain mutant in operating system (os)?

0 Answers  


What is LiveLock?

0 Answers  


What is context-switching in multi-threading?

0 Answers  


How long does it take to chkdsk 1tb?

0 Answers  


Can you install a 32bit program on a 64 bit computer?

0 Answers  


What is dual-mode operation?

0 Answers  


How do I copy a path to a shared drive?

0 Answers  


What is chkdsk command?

0 Answers  


What is pipelining in reference to ram?

0 Answers  


What is the purpose of the command interpreter? Why is it usually separate from the kernel?

0 Answers  


What is the difference between 32 bit and 64 bit os?

0 Answers  


How do I know if I have a 64 bit processor?

0 Answers  


Categories