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

What is difference between c++ and c ++ 14?

570


What are the uses of pointers?

575


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

998


What is the difference between global variables and static varables?

564


What is a container class? What are the types of container classes in c++?

676






What is encapsulation in c++?

665


What is stoi in c++?

694


Which software is used for c++ programming?

611


How does code-bloating occur in c++?

742


What is an object in c++?

606


What is rvalue?

673


Can circle be called an ellipse?

630


What is the disadvantage of using a macro?

589


why is iostream::eof inside a loop condition considered wrong?

588


Can a function take variable length arguments, if yes, how?

565