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 / prasenjit roy

Mutex is a locking object ( like a flag ) for avoiding the
simultaneous use of a common resource. It is also used to
lock the critical section.

Ctitical Section :: is a block of code which should run
atomically ie. there should be no contact switching while
this block executes and once the block starts it should
finish without any interruption.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a literal in c++?

1162


What is data structure in c++?

1190


What is a pointer with example?

1332


What are the benefits of operator overloading?

1271


Why is it called c++?

1086


Is c++ a pure oop language?

1122


What is input operator in c++?

1082


Why do we use using namespace std in c++?

1125


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

1112


How do you declare A pointer to a function which receives nothing and returns nothing

1301


Which is most difficult programming language?

1172


What is the identity function in c++? How is it useful?

1095


what are the iterator and generic algorithms.

2232


What is helper in c++?

1148


What is the full form of ios?

1136