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 |
How can i communicate with two systems one is located some place another is located 100km how from the current systems which protocala i have to use
What is a mnemonic?
Is it safe to uninstall microsoft visual c++ 2008 redistributable?
What is the purpose of declaring a variable as unsigned?
Do I need all the microsoft visual c++ redistributable?
How do I uninstall visual c++?
What is visual c++ runtime?
Do I need microsoft visual c++ on my computer?
What keyboard editor command is used for Undo?
What is cmutex?
What is the return value when the InsertItem function fails?
What is the file extension used for C++ class implementation files?