threading monitor c# code example
Example: how to use monitor from system.threading in c#
Monitor.Enter(object)
try
{
// do something
}
catch{}
finally{ Monitor.Exit(object)}
Monitor.Enter(object)
try
{
// do something
}
catch{}
finally{ Monitor.Exit(object)}