积极答复者
C++,多线程thread

问题
答案
-
我是说关了第一个线程函数,然后用同一对象启动另一个函数
我觉得是可以的,线程池的操作就是先创建几个线程对象,然后去完成不同的任务,认为完成以后,把线程放回线程池,等待下一个任务的到来。
线程池的工作原理,可以看这个文章。http://www.cnblogs.com/coser/archive/2012/03/10/2389264.html
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.
- 已标记为答案 3345544686 2016年5月12日 15:55
全部回复
-
我是说关了第一个线程函数,然后用同一对象启动另一个函数
我觉得是可以的,线程池的操作就是先创建几个线程对象,然后去完成不同的任务,认为完成以后,把线程放回线程池,等待下一个任务的到来。
线程池的工作原理,可以看这个文章。http://www.cnblogs.com/coser/archive/2012/03/10/2389264.html
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.
- 已标记为答案 3345544686 2016年5月12日 15:55