Re: Thread Synchronization



Bill wrote:
How do I synchronize three independent threads? Where do I need
to create CCriticalSection object and CSingLock objects? I tried with
them, but it is getting hang in some cases. Can you please guide me
in the correct way? Any specific design patterns are there to achieve
this problem?

I suggest you read the book by David Butenhof about POSIX threads. Note that
even though it talks about POSIX mostly, the principles apply to win32
threads, too. Alternatively, any other beginners' introduction to
multithreaded programming [using MFC] should do, too.

Uli

--
C++ FAQ: http://parashift.com/c++-faq-lite

Sator Laser GmbH
Geschäftsführer: Michael Wöhrmann, Amtsgericht Hamburg HR B62 932
.