What is a mutex and a critical section.Whats difference
between them?How do each of them work?

Answer Posted / vikas

Both of them are synchronization objects.
Critical sections are used for intraprocess synchronization
while mutexes are required for interprocess
synchronization. The latter is much heavier in terms of
resources consumed.

Vikas
http://www.cppquestions.com

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How should runtime errors be handled in c++?

619


What is the cout in c++?

563


How will you call C functions from C ++ and vice-versa?

667


What is the full name of logo?

604


Is c++ platform dependent?

643






How a pointer differs from a reference?

704


Explain queue. How it can be implemented?

689


What is the outcome of cout< a) 16 b) 17 c) 16.5

631


What is the use of function pointer?

584


What methods can be overridden in java?

683


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

582


What is a base class?

614


What are the differences between new and malloc?

640


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

597


What is virtual base class uses?

729