using System; using System.Threading; class MainClass { public static void DisplayMessage(object state) { string config = state as string; Console.WriteLine(config); Thread.Sleep(1000); } public static void Main() { ThreadPool.QueueUserWorkItem(DisplayMessage); } }
info