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

I have to DLL one is COM dll and another is normal DLL. How I can identify which dll is normal DLL and which DLL is from COM DLL. please give me some clear picture on these

2 Answers  


What is the difference between an MLE and an SLE?

1 Answers   Infosys,


What is persistence?

3 Answers  


What is cwinthread class?

0 Answers  


What is the RGB macro used for?

1 Answers  






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

0 Answers  


What is vcredist?

0 Answers  


How do you specify which control is the buddy control?

2 Answers  


How many time DLLMain gets called?

1 Answers   Microsoft,


Explain the advantages of cwinthread class.

0 Answers  


Do I need microsoft visual c++ 2005 redistributable on my computer?

0 Answers  


Name the function is used to transfer bitmaps to an output device?

2 Answers  


Categories