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
What is the protected keyword used for?
What language does google use?
How we can differentiate between a pre and post increment operators during overloading?
Which programming language should I learn first?
Can constructor be static in c++?
Explain the purpose of the keyword volatile.
What is array in c++ pdf?
What is capacity in vector in c++?
What c++ library is string in?
What is math h in c++?
Define a constructor - what it is and how it might be called (2 methods)?
How to defines the function in c++?
What are the advantages of c++?
Write a C++ Program to check whether a number is prime number or not?
Should a constructor be public or private?