线程池的问题??????????

liuduofu 2009-06-12 03:20:15
有哪位有线程池的例子,最好是框架形式的,比如 CThreadManage,CThreadPool,CThread,CJob,CWorkerThread 。
有的话发到我邮箱里:pycckii@163.com
高分重谢!
...全文
112 21 打赏 收藏 转发到动态 举报
写回复
用AI写文章
21 条回复
切换为时间正序
请发表友善的回复…
发表回复
光宇广贞 2009-06-19
  • 打赏
  • 举报
回复
……MSDN上就有……

http://msdn.microsoft.com/en-us/library/ms686980(VS.85).aspx

看看权威官方的示例吧。
pathuang68 2009-06-19
  • 打赏
  • 举报
回复
好贴,学习了
mymtom 2009-06-16
  • 打赏
  • 举报
回复
glib线程池,跨平台
http://library.gnome.org/devel/glib/stable/glib-Thread-Pools.html
lzr4304061988012 2009-06-15
  • 打赏
  • 举报
回复
JF
mymtom 2009-06-15
  • 打赏
  • 举报
回复
用glib
linaxing 2009-06-15
  • 打赏
  • 举报
回复
https://sourceforge.net/projects/libthreadpool
这个还不错,曾经在这个基础上开发过东西
neohope 2009-06-15
  • 打赏
  • 举报
回复
学习了:)
liuduofu 2009-06-12
  • 打赏
  • 举报
回复

有没有人有那个Linux下的完整的代码
liuduofu 2009-06-12
  • 打赏
  • 举报
回复
to (lingyin55)
http://www.hackhome.com/InfoView/Article_78131_2.html

这个有没有人有完整的代码,我想把它改成windows 下的
Wolf0403 2009-06-12
  • 打赏
  • 举报
回复
连你参考了哪些,觉得怎么不好都不说,大家怎么给你选?
lingyin55 2009-06-12
  • 打赏
  • 举报
回复
Linux下通用线程池的创建与使用
http://www.hackhome.com/InfoView/Article_78131_2.html
老邓 2009-06-12
  • 打赏
  • 举报
回复
threadpool is a cross-platform C++ thread pool library. In general terms thread pools are an efficient mechanism for asynchronous task processing within the same process. They realise the thread pool pattern.
A thread pool manages a group of threads in order to process a large number of tasks. Since multiple threads can be executed in parallel this approach may be very efficient regarding the overall program performance on many computer systems. By restricting the number of threads and by reusing them resources are saved and additionally the system stability is increased.

The threadpool library provides a convenient way for dispatching asynchronous tasks. Pools can be customized, managed dynamically and easily integrated into your software.

老邓 2009-06-12
  • 打赏
  • 举报
回复
钱吉 2009-06-12
  • 打赏
  • 举报
回复
看看
oyljerry 2009-06-12
  • 打赏
  • 举报
回复
http://www.cppblog.com/tx7do/archive/2006/04/14/5576.aspx
wuyu637 2009-06-12
  • 打赏
  • 举报
回复
线程池,你要哪种?

windows下的还是linux下的?

windows下的
http://blog.csdn.net/pjchen/archive/2004/11/06/170606.aspx

linux的。
https://sourceforge.net/projects/libthreadpool
liushuan 2009-06-12
  • 打赏
  • 举报
回复
没有人有的吗???
amossavez 2009-06-12
  • 打赏
  • 举报
回复
没有,帮顶
chenzhp 2009-06-12
  • 打赏
  • 举报
回复
感觉不好,但是你可以根据其原理修改啊。这样还可以快速提高自己的能力
加载更多回复(1)

64,637

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧