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 are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


What does mfc stand for?

0 Answers  


What?s the difference between Modal and Modeless Dialog?

12 Answers   Jekson, Usl India,


how many types of classes are ther,what are that

7 Answers   L&T,






WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE

4 Answers   Google, Microsoft, TCS,


What is Multithreading

1 Answers   Invensys,


Which MFC function is used to display output?

9 Answers   TCS,


1)How to change a text of a button as Dynamically?

1 Answers   HCL,


what is message Testing ?

1 Answers   L&T,


In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?

3 Answers   Financial Technologies,


Explain about MDI and CMultiDocTemplate ?

2 Answers  


Categories