Table of Contents

Class Monitor

Namespace
System.Threading
Assembly
mscorlib.dll

Provides a mechanism that synchronizes access to objects.

public static class Monitor
Inheritance
Monitor
Inherited Members

Methods

Enter(object)

Acquires an exclusive lock on the specified object.

public static void Enter(object obj)

Parameters

obj object

The object on which to acquire the monitor lock.

Exit(object)

Releases an exclusive lock on the specified object.

public static void Exit(object obj)

Parameters

obj object

The object on which to release the lock.