private static readonly object _lock = new object();
public static void Main()
for (var i = 0; i < 10; i++)
System.Threading.Thread thread = new System.Threading.Thread(() => ExecuteInBackground(i));
thread.IsBackground = true;
private static void ExecuteInBackground(Object obj)
Console.WriteLine("A "+obj);
public static void ttt(object obj)
Console.WriteLine("B "+ obj);