Suppose multiple threads accessing a registry key at a
time. In that case which synchronization object you will
use?
Answers were Sorted based on User's Feedback
Answer / ranajit koley
I think a critical section would be the best solution as we
can keep the registry accessing part inside critical section
and we can invoke that piece of code after entering the
critical section from all the 3 threads
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / muthu
If multiple threads belong to the single process then use
critical section.
But if threads belong to more than one process then use "mutex".
Mutex is best.
Is This Answer Correct ? | 4 Yes | 0 No |
Can I remove microsoft visual c++?
What is a microsoft visual c++ 2008 redistributable?
What are the advantages of a message map
Do I need all the microsoft visual c++ redistributable?
#include<stdio.h>int(){int a,*b,**c,***d,****e; a=10;b=&a;c=&b;d=&c;e=&c;printf("a=%d b=%u c=%u d=% e=%u",a,b,c,d,e);printf ("%d%d%d\n",a,a+?*b,**c+***d+,****e);return0;}
What is a copy constructor? What is the need for it?
What is microsoft visual c++ 2010 x86 redistributable?
What property is used to indicate that the up-down control is associated with a buddy control?
What is microsoft visual c++ 2008 redistributable?
Where can I find microsoft visual c++?
Do I need the microsoft visual c++?
Name the three types of loops used in C++ programs?