Click to See Complete Forum and Search --> : Mutex and Critical Section


maverick786us
April 7th, 2006, 07:42 AM
What is the major difference between Mutex and Critical Section?

I've read somewhere that Mutexes are the mechanism of process synchronization that might be used to synchronize data across multiple processes. Mutex is a waitable object

What Exactly thus the term "Waitable" means in this contex?

wildfrog
April 7th, 2006, 07:48 AM
What is the major difference between Mutex and Critical Section?
As you said, mutex can be used across multiple processes while critical sections can be used only whithin a single process.

What Exactly thus the term "Waitable" means in this contex?You can use the different 'wait functions' to wait for a mutex (WaitForSingleObject, WaitForMultipleObjects etc.).

- petter

ovidiucucu
April 7th, 2006, 07:54 AM
[ Moved thread ]

jayender.vs
April 7th, 2006, 08:05 AM
Critical section provides synchronization means for one process only, while mutexes allow data synchronization across processes.
Difference between mutex and critical section (http://www.codeguru.com/forum/showthread.php?t=333192)