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

Whats is DDX & DDV in MFC?

1 Answers   HCL,


What four types of properties are supported by an ActiveX control?

1 Answers  


How to setup a timer?

3 Answers   IBM,


what do you mean by psychic window?

2 Answers   Patni,


Explain StretchBlt and BitBlt

1 Answers  






What is the difference between GetMessage and PeekMessage ?

3 Answers  


Types of DLL's

11 Answers   Invensys,


what is the difference between compiling and building?

1 Answers  


What is LoadLibrary function returns?

7 Answers  


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  


How to handle RTTI in MFC ?

1 Answers  


1) How do you Destroy a Dialog Box ?

2 Answers   Honeywell,


Categories