NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Monitor Class

Object
   Monitor

[Visual Basic]
NotInheritable Public Class Monitor
[C#]
public sealed class Monitor
[C++]
public __gc __sealed class Monitor
[JScript]
public class Monitor

Remarks

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.

Requirements

Namespace: System.Threading

Assembly: mscorlib.dll

See Also

Monitor Members | System.Threading Namespace | Thread