using System.Collections.Generic;
TaskCallBack(Object ThreadNumber)
string ThreadName = "Thread " + ThreadNumber.ToString();
for (int i = 1; i < 3; i++)
Console.WriteLine(ThreadName + ": " + i.ToString());
Console.WriteLine(ThreadName + "Finished...");
static void Main(string[] args)
for (int task = 1; task < 8; task++)
ThreadPool.QueueUserWorkItem(new WaitCallback(TaskCallBack), task);