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

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

624


What is iunknown? Explain some of commonly used methods provided by iunknown.

705


What is microsoft visual c++ 2008 redistributable and do I need it?

628


How do I fix microsoft visual c++ 2015 setup failed?

668


How can we use cmutex?

644






What is splitter window in vc++?

785


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

647


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

632


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

650


What is the difference between turbo c++ and visual c++?

621


What is cmutex? How can we use it?

646


What is visual c++ runtime error?

682


How do I create an mfc application in vc++?

705


Explain the advantages of cwinthread class.

669


What is microsoft visual c++ runtime library error?

638