代码:

ThreadPool.SetMaxThreads(, );
ThreadPool.QueueUserWorkItem((obj) =>
{
MessageBox.Show("执行线程中的代码");
}); Thread.Sleep(); int n = ;
ThreadPool.QueueUserWorkItem((obj) =>
{
MessageBox.Show("传入的参数是:" + Convert.ToInt32(obj));
}, n);
05-11 11:22