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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I install microsoft visual c++ 2015?

741


What is microsoft visual c++ 2005 redistributable?

751


Is it safe to uninstall microsoft visual c++ 2008 redistributable?

764


What is the Use of the Developer Studio Editor?

2344


What is ole? How do you handle drag and drop in ole?

707


What is visual c++ 2008 redistributable x64?

723


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

730


How many microsoft visual c++ do you need?

792


What is visual c++ redistributable?

792


What is vcredist?

837


What is visual c++ runtime?

761


What is difference between c++ and vc++?

880


How can we use cmutex?

739


Does visual c++ 2017 replace 2015?

755


What is a thread (VC++) and state the difference between Cmutex and Csemaphone?

801