what is the use of Mutex and critical section

Answers were Sorted based on User's Feedback



what is the use of Mutex and critical section..

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

what is the use of Mutex and critical section..

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

Post New Answer

More MFC Interview Questions

What?s the difference between Modal and Modeless Dialog?

12 Answers   Jekson, Usl India,


1)set the Title for The File DialogBox, in MFC?

1 Answers  


How do I create a dialog box in mfc?

0 Answers  


How to create a Modeless Dialog?

5 Answers  


Can you explaing the relashionship between document,frame and view ?

2 Answers  






What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


How you create a button dynamically?

2 Answers  


How can i implement the dynamic menus in MFC plz give the code

2 Answers  


What is the difference between regular dlls and extended dlls?

2 Answers  


Differ GetMessage, PostMessage & PeakMessage?

4 Answers   Symphony,


i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required

3 Answers   Patni,


Categories