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 the use of ::(scope resolution operator)?

1124


Can I make ios apps with c++?

1100


How is computer programming useful in real life?

1122


What is array in c++ example?

1167


Refer to a name of class or function that is defined within a namespace?

1159


What is jump statement in C++?

1214


What is const pointer and const reference?

1234


Explain stack & heap objects?

1100


How are the features of c++ different from c?

1167


What is encapsulation in c++?

1378


What are virtual constructors/destructors?

1077


What are the advantages of inheritance in c++?

1141


Evaulate: 22%5 a) 2 b) 4 c) 0

1147


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1192


What does the linker do?

1087