Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the three forms of cin.get() and what are their differences?

1241


Please explain the reference variable in c++?

1073


What is difference between n and endl in c++?

1096


What is the difference between public and private data members?

1181


Which is most difficult programming language?

1105


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1261


How new/delete differs from malloc()/free?

1145


Why is main function important?

1112


Do you know the problem with overriding functions?

1109


Is java a c++?

1050


What is a loop? What are different types of loops in c++?

1133


What is setf in c++?

1090


Why do we use classes in programming?

1038


What are the rules about using an underscore in a c++ identifier?

1197


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

1269