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 combo box are their
2 Answers Aaditya Info Solutions, E Logic,
What is the use of OninitDialog ?
How do I create a dialog box in mfc?
What does mfc stand for?
how many types of messages are their
how to give colour for dialog button or static buuto?any one explain full code ?pls pls
What is mfc class hierarchy?
What is socket?
General purpose classes in MFC
1)How to load an icon on a button as Dynamically ?
Why not virtual functions to handle messages?
I have 2 threads. One thread prints odd numbers and the second thread prints even numbers. Now, I have to execute the threads alternatively so that i can output 1,2,3,4,5,6,..... write code for this?