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 |
how many types of classes are ther,what are that
How we can findout Memoryleaks, In what way it can be avoided
What is a critical section and how is it implemented?
What is CArchive class dowes?
If there is more than 100 control in a window how we can change the Taborder of a controls
how can u change button shape at run time
1)dynamic creation of a Button ?
What is the initial function to be called in MFC and what it will do
Which MFC function is used to display output?
How can i implement the dynamic menus in MFC plz give the code
Can you explaing the relashionship between document,frame and view ?
What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example