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 |
Does the application have more than one object? If Yes, Briefly explain.
How to handle dynamic menus in MFC?
Explain the flow of SDI application?
How do you change the properties for a tree view control that is part of the CTreeView class?
Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer
how to repaint when working with horizontal scroll bar
what is the component of CLR ?
What is the base class for MFC Framework ?
What is the use of CObject::Dump function ?
What is subclassing?
What is model and modeless dialog box ? Give some examples?
What types of threads are supported by MFC framework?