using System.Diagnostics;
private object locker = new Object();
public void SomeMethod(int id)
Console.WriteLine("SomeClass.SomeMethod #" + id);
object obj = new Object();
public static void Main()
Console.WriteLine("Hello World");
SomeClass o = new SomeClass();
for (int threadId = 0; threadId < 3; threadId++)
Thread t = new Thread(() => {
var sw = Stopwatch.StartNew();
while (sw.ElapsedMilliseconds < 8000)