搜索资源列表
homework5
- 编写一个单队列线程池应用,在应用中存在两种线程:一个用户线程,用于向线程池发送加法计算请求;若干计算线程,接收来自线程池的加法请求,计算后将结果返回给用户线程。其中用户线程拥有自己的消息队列,若干计算线程共享一个消息队列。测试时需要向线程池提交>=1000个加法请求,用户线程需要验证是否收到结果。-The preparation of the application of a single queue thread pool, there are two threads in the ap
writeQueue2013-1-5
- 这是一个写队列,初始化时申请大量的list,并采用定时或者单个list满则立即执行队列中的操作,采用内部多线程封装,外部只有部分接口直接使用-This is a write queue, to apply for a large number of list initialization and timing or a single list is full of immediate execution queue operation using internal multithreading
queue
- This file implements a single-producer single-consumer queue, using a mutex and a condition variable.