public void RunWithThreadPool() { for (int i = 0; i < 5; i++) { ThreadPool.QueueUserWorkItem(x => { Debug.WriteLine(x.ToString()); }); } }