public class LockStatement
static CountdownEvent _countdown = new CountdownEvent (3);
public static void Main()
new Thread (SaySomething).Start ("I am thread 1");
new Thread (SaySomething).Start ("I am thread 2");
new Thread (SaySomething).Start ("I am thread 3");
Console.WriteLine ("All threads have finished speaking!");
static void SaySomething (object thing)
Console.WriteLine (thing);