http://sourceforge.net/projects/threadpoolpas/
http://hivelocity.dl.sourceforge.net/project/threadpoolpas/ThreadPool-1.0.6 (with compiled examples).zip
http://downloads.sourceforge.net/project/threadpoolpas/ThreadPool-1.0.6.zip
Description
With this class framework for Delphi (>=2010) you can implement any kind of specialized thread pool's.
It introduces 3 base classes
TPoolTask, TPoolWorker and the TPoolManager.
You have to derive each of them for your work... See the Features!
Features
Both TPoolWorker and TPoolManager are true threadsEach derived manager is accessible through the Singleton patternConcurrent workers: The manager is able to manage any amount of concurrent workersSpared workers: The manager is able to hold any amount of sleeping workers, which can faster take any taskDemand mode (optional): The manager terminates himself automatically, if all tasks are doneTasks are prioritizable
转载于:https://www.cnblogs.com/shangdawei/p/4019166.html
相关资源:数据结构—成绩单生成器