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
How do I run a program in notepad ++?
What are proxy objects in c++?
What does int * mean in c++?
What is an incomplete type in c++?
What is iterator in c++?
What is the standard template library (stl)?
How one would use switch in a program?
What are different types of loops in c++?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
What is the average salary of a c++ programmer?
Specify some guidelines that should be followed while overloading operators?
Evaulate: 22%5 a) 2 b) 4 c) 0
Which is most difficult programming language?
What are references in c++?
What is a flag in c++?