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 |
What is splitter window in vc++?
Do I need the microsoft visual c++?
difference between assert and verify.
How to declare more than one variable on a single line?
Can I delete old microsoft visual c++?
What is the RGB macro used for?
Is it ok to uninstall microsoft visual c++?
How do you define a function in vc++?
What Is InfoViewer?
What is command routing in VC++
What is the use of microsoft visual c++ 2015 redistributable?
Suppose multiple threads accessing a registry key at a time. In that case which synchronization object you will use?