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

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

}

public void YffCommand(object _entity)
{
}


将任务添加进线程池

posted @ 2012-03-26 09:06  Kazaf  阅读(829)  评论(0编辑  收藏  举报