搜索资源列表
ProducersAndCustomers
- 通过研究Linux的线程机制和信号量实现生产者消费者(Bounded Buffer)问题的并发控制。 通过n个缓冲区组成缓冲池共同完成“生产和消费”任务,每个缓冲区存放一个产品,生产者将生产出的产品放入空缓冲区;消费者从满缓冲区中取出产品。一旦所有缓冲区均满时,生产者必须等待消费者提供空缓冲区。另外,对所有生产者和消费者线程来说,缓冲池是临界资源,即任何一个线程在对某个缓冲区进行“存”和“取”操作时须和其他线程互斥执行。 -By studying the Linux thread and
thrmgr
- linux通用线程池thrmgr,附带使用实例。-linux general thread pool thrmgr, with use cases.
cprops
- The cprops (C prototyping tools) library provides a portable, thread-safe C API including linked list, binary heap, priority queue, hash table, hash list, trie, AVL, Red-Black, and splay tree implementations, a thread pool and thread management fra
lMyLinuxThreai
- linux epoll、线程池模型,很好的学习eepoll的源代码。 ,经测试 -linux epoll, thread pool model, good learning of the source code eepoll. , Tested
线程池
- linux下线程池的实现,能够实现多任务操作,不用频繁创建-The Linux thread pool, no test
ThreadPool
- linux下两种方式实现线程池,可以直接用在项目中,希望对你有帮助!-Two ways under Linux thread pool, can be directly used in the project, I hope it can help you!
VCThreadPool3
- 1.线程池管理器(ThreadPoolManager):用于创建并管理线程池 2.工作线程(WorkThread): 线程池中线程 3.任务接口(Task):每个任务必须实现的接口,以供工作线程调度任务的执行。 4.任务队列:用于存放没有处理的任务。提供一种缓冲机制。 网上的c/c++线程池多是linux下的,这个是VC6.0的线程池。其涉及的主要文件有:ThreadPoolManage、IThreadExcute、TemporarilyThread、ThreadManage、RegKeyIni