ThreadPool.QueueUserWorkItem(将任务添加进线程池)

public void YffCommandCallBack(YffCallBackEntity entity)
{
try
{
ThreadPool.QueueUserWorkItem(new WaitCallback(YffCommand), entity);//数据入库(线程处理)
}
catch { }

}

public void YffCommand(object _entity)
{
}


将任务添加进线程池

你可能感兴趣的:(ThreadPool)