文件名称:libthread_new
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现了一个线程池。其中运用了队列,以避免任务丢失。在队列和线程池之间创建了一个中间夹层,以提高可移植性。当任务来时,先压入队列,然后唤醒线程执行操作。线程完成任务后,再去队列查询,如果有任务就去执行,没有则阻塞,等待-Implements a thread pool. The application the queue, to avoid task lost. In the queue and thread pool between to create a intermediate sandwich, in order to improve the portability. When the task comes, first presses in the queue, and then awaken thread perform operation. Thread after completion of a mission, to queue inquires the, if have the mission to carry out, no is blocked, wait
(系统自动生成,下载前可以参看下载内容)
下载文件列表
libthread_new\middle\taskque.c
.............\include\threadpool.h
.............\.......\taskque.h
.............\.......\qfque.h
.............\que\que.c
.............\threadpool\threadpool.c
.............\test
.............\main.c
.............\middle
.............\include
.............\que
.............\threadpool
libthread_new
.............\include\threadpool.h
.............\.......\taskque.h
.............\.......\qfque.h
.............\que\que.c
.............\threadpool\threadpool.c
.............\test
.............\main.c
.............\middle
.............\include
.............\que
.............\threadpool
libthread_new