其他分享
首页 > 其他分享> > ThreadPool用法

ThreadPool用法

作者:互联网

for (int i = 0; i < 100; i++)
            {
                ThreadPool.QueueUserWorkItem(o =>
                {
                    Console.WriteLine(o.ToString());

                }, i);

            }
            Console.Read();

 

标签:Console,int,用法,ThreadPool,Read,ToString,WriteLine
来源: https://www.cnblogs.com/devgis/p/16366180.html