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 |
Explain the significance of initapplication() in vc++.
How do I uninstall and reinstall microsoft visual c++ runtime libraries?
Name the three types of loops used in C++ programs?
What is the return value when the InsertItem function fails?
What is microsoft visual c++ used for?
What is the difference between the = and == operators?
Where can I find microsoft visual c++ on my computer?
How a dll will be sharable by more than one exe?
What is the value of the expression a = 42?
How do I reinstall microsoft visual c++?
What is the purpose of a C++ namespace?
Do you need microsoft visual c++?