搜索资源列表
mqsample
- 使用消息队列的例子,用于新学习消息队列示范-use the example for the new learning model Message Queue
TheadQueue.zip
- 使用命令模式和责任链模式以及STL优先级队列实现线程池,可以直接加入现在的任何程序,Responsibility for the use of chain of command model and STL model and the realization of priority queue thread pool, you can direct any proceedings to join now
ProcessorScheduling
- 可利用先来先服务、短作业优先、响应比高者优先、多级反馈队列模型、时间片轮转法等,来实现处理机的调度。-Available first come first serve, short job priority, the response is high and is preferred, multi-level feedback queue model, time slice rotation law, to achieve the processor scheduling.
ThreadExamplePixelColor
- 多线程块模型(MTA)在每个进程里只有一个块而不是多个块。这单个块控制着多个线程而不是单个线程。这里不需要消息队列,因为所有的线程都是相同的块的一个部分,并且可以共享。这样的程序比单线程模型和STA的执行速度都要快,因为降低了系统的负载,因而可以优化来减少系统idle的时间。这些应用程序一般比较复杂,因为程序员必须提供线程同步以保证线程不会并发的请求相同的资源,因而导致竞争情况的发生。这里有必要提供一个锁机制。但是这样也许会导致系统死锁的发生。-Multi-threaded block mode
