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
Why is c++ is better than c?
Can we run c program in turbo c++?
Define copy constructor.
Do you know what are pure virtual functions?
What is the best c++ compiler?
Can a new be used in place of old mallocq? If yes, why?
What are the c++ access specifiers?
Explain the uses oof nested class?
What does the ios::ate argument do?
What is the C-style character string?
Explain how an exception handler is defined and invoked in a Program.
When is dynamic checking necessary?
daily Routine of father
Explain overriding.
When does a 'this' pointer get created?