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

How does c++ sort work?

982


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1189


Explain the difference between overloading and overriding?

1145


How to give an alternate name to a namespace?

1088


How does a C++ structure differ from a C++ class?

1123


What is a rooted hierarchy?

1166


How should a contructor handle a failure?

1195


What do you mean by enumerated data type?

1051


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1265


What is meant by a delegate?

1096


Write a Program to find the largest of 4 no using macros.

1082


What is a friend function in c++?

1642


What is a node class in c++?

1073


What is auto type c++?

1129


What is a set in c++?

977