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 the use of DDV and DDX routines ?

4 Answers   TCS,


Name the three attributes of a pen?

1 Answers  


Explain the advantages of cwinthread class.

0 Answers  


What are the two forms of the #include preprocessor directive?

1 Answers  


what is mean [] inc what is the use of include conio.h in c

1 Answers   BirlaSoft,


Can I delete old microsoft visual c++?

0 Answers  


What is splitter window in vc++?

0 Answers  


A file a.cpp & B.cpp are complied & linked together in VC++ file a is something like int a =100;, File B is something like extern a; main() { printf("%d",a); }what will be the output.a)100,b)linker error,c)complier error etc etc.

3 Answers   Honeywell,


Do I need the microsoft visual c++?

0 Answers  


What property is used to indicate that the up-down control is associated with a buddy control?

1 Answers  


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

0 Answers  


Differences between vc 6.0 and vc 7.0

1 Answers   Honeywell,


Categories