Object
Monitor
[Visual Basic] NotInheritable Public Class Monitor [C#] public sealed class Monitor [C++] public __gc __sealed class Monitor [JScript] public class Monitor
Exposes the ability to take and release the sync block lock on an object on demand via Enter, TryEnter and Exit.
The Wait, Pulse and PulseAll methods are related to SyncBlocks. It is necessary to be in a synchronized region on an object before calling Wait or Pulse on that object. Wait releases the lock if it is held and waits to be notified. When Wait is notified, it returns and has obtained the lock again. Pulse signals for next thread in wait queue to proceed.
Namespace: System.Threading
Assembly: mscorlib.dll