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



Suppose multiple threads accessing a registry key at a time. In that case which synchronization ob..

Answer / amiya ranjan

Semaphores / events can be used.

Is This Answer Correct ?    10 Yes 4 No

Suppose multiple threads accessing a registry key at a time. In that case which synchronization ob..

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

Suppose multiple threads accessing a registry key at a time. In that case which synchronization ob..

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

Suppose multiple threads accessing a registry key at a time. In that case which synchronization ob..

Answer / anurag gupta

Mutex

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VC++ AllOther Interview Questions

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

0 Answers  


What function is used to trap all mouse messages?

1 Answers  


What is microsoft visual c++ 2010 x86 redistributable?

0 Answers  


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

0 Answers  


What is odbc in vc ++?

0 Answers  






What is the value of the expression a = 42?

2 Answers  


Where can I find microsoft visual c++ on my computer?

0 Answers  


Is microsoft visual c++ a virus?

0 Answers  


What is visual c++ redistributable?

0 Answers  


How a dll will be sharable by more than one exe?

4 Answers   CA,


What is the default label used for in a switch statement?

2 Answers  


How do I reinstall visual c++ on windows 10?

0 Answers  


Categories