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 is the protected keyword used for?

1113


What language does google use?

1175


How we can differentiate between a pre and post increment operators during overloading?

1107


Which programming language should I learn first?

1104


Can constructor be static in c++?

1116


Explain the purpose of the keyword volatile.

1173


What is array in c++ pdf?

1194


What is capacity in vector in c++?

1020


What c++ library is string in?

1060


What is math h in c++?

1179


Define a constructor - what it is and how it might be called (2 methods)?

1145


How to defines the function in c++?

1141


What are the advantages of c++?

1900


Write a C++ Program to check whether a number is prime number or not?

1133


Should a constructor be public or private?

1037