How to: Synchronize a Producer and a Consumer Thread (C#)
Full Name:
How to: Synchronize a Producer and a Consumer Thread (C#)
Short Name:
How to: Synchronize a Producer and a Consumer Thread (C#)
Type of Entity:
C#
Abstract:
The following example demonstrates thread synchronization between the primary thread and two worker threads using the lock keyword, and the AutoResetEvent and ManualResetEvent classes. For more information, see lock Statement (C# Reference).
MSDN Source URL:
http://msdn2.microsoft.com/yy12yx1f.aspx