GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  HP (Hewlett-Packard)  >  Technical
Go To First  |  Previous Question  |  
 Technical  |  Question 21 of 21    Print  
Semaphore and Mutex
What is the difference between Semaphore and Mutex?


  
Total Answers and Comments: 3 Last Update: September 15, 2009     Asked by: sr_sanjeev 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 06, 2009 23:20:16   #1  
gauthamk_89 Member Since: January 2009   Contribution: 3    

RE: Semaphore and Mutex

Semaphore is a tool used for synchronization problem critical section problem

Mutex implies only one process can perform operation in critical section and using semapohore you implement mutex locks


 
Is this answer useful? Yes | No
September 15, 2009 07:01:25   #2  
quintessence Member Since: September 2009   Contribution: 2    

RE: Semaphore and Mutex
Basic difference between mutex and semaphore is that in mutex the process which initiates the lock is the one which unlock it. In contrast it is possible for one process to lock a binary semaphore and for another to unlock it.
 
Is this answer useful? Yes | No
September 15, 2009 07:05:13   #3  
quintessence Member Since: September 2009   Contribution: 2    

RE: Semaphore and Mutex
The basic difference between a mutex and a semaphore is that a process that sets a lock the mutex is the one to unlock it. In contrast it is possible for one process to lock a semaphore and for another to unlock it.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape