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 are guid?

1258


Can manipulators fall in love?

1031


Explain the isa and hasa class relationships. How would you implement each?

1140


How many types of comments are there in c++?

989


What is null pointer and void pointer and what is their use?

1106


How would you obtain segment and offset addresses from a far address of a memory location?

1096


What is runtime errors c++?

1131


Why do we use vector in c++?

1085


Can we inherit constructor in c++?

1109


How do you write a function that can reverse a linked-list?

1126


Where is atoi defined?

1154


What is an inline function in c++?

1131


What is polymorphism in c++? Explain with an example?

1056


What are the two types of comments?

1011


What is the difference between reference and pointer?

1172