.NET
syndom.txt
Associated article: Synchronization Domains
Tags: Web Development .NET Design
Published source code accompanying the article by Richard Grimes in which he shows that the best place to avoid deadlocks is in the design stage--and that's where synchronization domains come in.
Synchronization Domains
by Richard Grimes
Listing One
class Base : ContextBoundObject
{
// Write the class name 100 times on the console
public void Run(object o)
{
string str = GetType().ToString();
for (int i = 0; i < 100; i++)
{
Console.Write(str);
Thread.Sleep(20);
}
Console.WriteLine();
}
}
...


