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 / achal ubbott

Above answers are correct.now I tell why?
1. Critical Section Object works faster because Critical
section is a user object and is specific to a process.
Where as a Mutex is a kernel object and so many
processes running over the kernel can lock or
unlock/release it. So it is a bit heavier than Critical
Section and thus slow.
2. When control enters the critical section the interrupts
(from various devices like FEC, UART etc. ) to the CPU core
are disabled

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What you know about structures in C++?

1098


Define pre-condition and post-condition to a member function in c++?

1160


What is the basic structure of a c++ program?

1162


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

1090


What is encapsulation in C++? Give an example.

1112


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

973


What does #define mean in c++?

1283


What is c++ iterator?

1158


How the keyword struct is different from the keyword class in c++?

1049


What is an iterator?

1203


How does class accomplish data hiding in c++?

1193


Why c++ does not have finally?

1094


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

1195


Why is swift so fast?

1135


What do you mean by funtion prototype?

1089