Suppose multiple threads accessing a registry key at a
time. In that case which synchronization object you will
use?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between getmessage, postmessage & peakmessage.

601


How do I uninstall and reinstall microsoft visual c++ runtime libraries?

563


What is visual c++ used for?

577


difference between assert and verify.

585


What is cmutex? How can we use it?

573






Is visual c++ still used?

554


Do I need the microsoft visual c++?

553


What is visual c++ redistributable?

577


What is a copy constructor? What is the need for it?

573


What is mfc in vc++?

714


How do I uninstall visual c++?

543


What is microsoft visual c++ 2015 redistributable package x64?

555


How do I reinstall microsoft visual c++?

519


Explain the important features of vc++?

596


Is it ok to uninstall microsoft visual c++?

587