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

What is cmutex?

579


What is vcredist_x86 exe?

606


What is cwinthread class? Explain its advantages.

566


Do I need the microsoft visual c++?

559


What is microsoft visual c++ 2008 redistributable?

585






What is visual c++ used for?

579


How many microsoft visual c++ do you need?

578


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

525


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

610


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

553


What is microsoft visual c++ runtime library error?

553


Is visual c++ a compiler?

551


What is the Use of the Developer Studio Editor?

2156


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

541


What is microsoft visual c++ 2010 x86 redistributable?

553