What is a mutex and a critical section.Whats difference
between them?How do each of them work?
Answer Posted / vikas
Both of them are synchronization objects.
Critical sections are used for intraprocess synchronization
while mutexes are required for interprocess
synchronization. The latter is much heavier in terms of
resources consumed.
Vikas
http://www.cppquestions.com
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What are the three forms of cin.get() and what are their differences?
Please explain the reference variable in c++?
What is difference between n and endl in c++?
What is the difference between public and private data members?
Which is most difficult programming language?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
How new/delete differs from malloc()/free?
Why is main function important?
Do you know the problem with overriding functions?
Is java a c++?
What is a loop? What are different types of loops in c++?
What is setf in c++?
Why do we use classes in programming?
What are the rules about using an underscore in a c++ identifier?
What is a container class? What are the types of container classes in c++?