- 1
- 0
- 约2.99千字
- 约 35页
- 2018-11-20 发布于天津
- 举报
【大学课件】基于多核编程的案例分析知识分享.ppt
基于多核编程的案例分析
;TCP类;线程安全收集;垃圾线程回收;垃圾线程回收方法;安全关闭服务;线程池; // Schedule task again
if ( SharedStateObj.ContinueProcess !bQuit )
ThreadPool.QueueUserWorkItem(new WaitCallback(this.Process), SharedStateObj);
else {
networkStream.Close();
ClientSocket.Close();
// Deduct no. of clients by one
Interlocked.Decrement(ref SharedStateObj.NumberOfClients );
Console.WriteLine(A client left, number of connections is {0},
SharedStateObj.NumberOfClients) ;
}
// Signal main process if this is the last client connections
// main thread re
原创力文档

文档评论(0)