what is the use of Mutex and critical section
Answers were Sorted based on User's Feedback
Answer / krishna akkulu
Using a mutex is more expensive in terms of CPU
utilization, but mutexes may be shared outside the
processes boundaries.
A critical section object provides synchronization similar
to that provided by a mutex object, except that a critical
section can be used only by the threads of a single
process.
Event, mutex, and semaphore objects can also be used in a
single-process application, but critical section objects
provide a slightly faster, more efficient mechanism for
mutual-exclusion
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / xxxx
Supports synchronization by which we can provide controlled
access to the shared resource. At a time, only one process
can access the shared resource by using mutex n critical
section.
Is This Answer Correct ? | 4 Yes | 3 No |
Whats is DDX & DDV in MFC?
What four types of properties are supported by an ActiveX control?
How to setup a timer?
what do you mean by psychic window?
Explain StretchBlt and BitBlt
What is the difference between GetMessage and PeekMessage ?
Types of DLL's
what is the difference between compiling and building?
What is LoadLibrary function returns?
1)To Remove WS_MINIMIZEBOX in a Frame ?
How to handle RTTI in MFC ?
1) How do you Destroy a Dialog Box ?