文件名称:ThreadPoolDemo
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2017-07-20
- 文件大小:
- 37.21mb
- 下载次数:
- 0次
- 提 供 者:
- Magne*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
简易线程池思想+优先任务队列 可根据当前任务状态动态增减任务线程数
数目成员包括:初始线程数 最多线程数 最少空闲线程数 最多空闲线程数
原则上接到任务从空闲线程队列取线程执行,取了后判断最多线程数与最少空闲线程数决定是否创建空闲线程
线程执行从空闲切换到繁忙,执行完后继续从任务队列取任务执行,当任务队列空了再放置空闲队列
放置到空闲队列后,判断空闲队列最多数选择干掉空闲线程(Simple thread pool thinking + priority task queue can dynamically increase or decrease the number of threads according to the current task state)
数目成员包括:初始线程数 最多线程数 最少空闲线程数 最多空闲线程数
原则上接到任务从空闲线程队列取线程执行,取了后判断最多线程数与最少空闲线程数决定是否创建空闲线程
线程执行从空闲切换到繁忙,执行完后继续从任务队列取任务执行,当任务队列空了再放置空闲队列
放置到空闲队列后,判断空闲队列最多数选择干掉空闲线程(Simple thread pool thinking + priority task queue can dynamically increase or decrease the number of threads according to the current task state)
相关搜索: threadpool
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ThreadPoolDemo\FTLDemo.cpp
ThreadPoolDemo\FTLDemo.h
ThreadPoolDemo\FTLDemo.rc
ThreadPoolDemo\FTLDemo.sdf
ThreadPoolDemo\FTLDemo.sln
ThreadPoolDemo\FTLDemo.sln.old
ThreadPoolDemo\FTLDemo.suo
ThreadPoolDemo\FTLDemo.suo.old
ThreadPoolDemo\FTLDemo.vcproj
ThreadPoolDemo\FTLDemo.vcxproj
ThreadPoolDemo\FTLDemo.vcxproj.filters
ThreadPoolDemo\FTLDemo.vcxproj.user
ThreadPoolDemo\FTLDemoSheet.cpp
ThreadPoolDemo\FTLDemoSheet.h
ThreadPoolDemo\ftlFake.h
ThreadPoolDemo\ftlThread.cpp
ThreadPoolDemo\ftlThread.h
ThreadPoolDemo\ftlThreadPool.h
ThreadPoolDemo\ftlThreadPool.hpp
ThreadPoolDemo\ipch\ftldemo-aff1d45c\ftldemo-1559cd37.ipch
ThreadPoolDemo\ReadMe.txt
ThreadPoolDemo\res\FTLDemo.ico
ThreadPoolDemo\res\FTLDemo.rc2
ThreadPoolDemo\resource.h
ThreadPoolDemo\stdafx.cpp
ThreadPoolDemo\stdafx.h
ThreadPoolDemo\ThreadPage.h
ThreadPoolDemo\ThreadPoolPage.cpp
ThreadPoolDemo\ThreadPoolPage.h
ThreadPoolDemo\UpgradeLog.XML
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport.css
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport.xslt
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport_Minus.gif
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport_Plus.gif
ThreadPoolDemo\ipch\ftldemo-aff1d45c
ThreadPoolDemo\ipch
ThreadPoolDemo\res
ThreadPoolDemo\_UpgradeReport_Files
ThreadPoolDemo
ThreadPoolDemo\FTLDemo.h
ThreadPoolDemo\FTLDemo.rc
ThreadPoolDemo\FTLDemo.sdf
ThreadPoolDemo\FTLDemo.sln
ThreadPoolDemo\FTLDemo.sln.old
ThreadPoolDemo\FTLDemo.suo
ThreadPoolDemo\FTLDemo.suo.old
ThreadPoolDemo\FTLDemo.vcproj
ThreadPoolDemo\FTLDemo.vcxproj
ThreadPoolDemo\FTLDemo.vcxproj.filters
ThreadPoolDemo\FTLDemo.vcxproj.user
ThreadPoolDemo\FTLDemoSheet.cpp
ThreadPoolDemo\FTLDemoSheet.h
ThreadPoolDemo\ftlFake.h
ThreadPoolDemo\ftlThread.cpp
ThreadPoolDemo\ftlThread.h
ThreadPoolDemo\ftlThreadPool.h
ThreadPoolDemo\ftlThreadPool.hpp
ThreadPoolDemo\ipch\ftldemo-aff1d45c\ftldemo-1559cd37.ipch
ThreadPoolDemo\ReadMe.txt
ThreadPoolDemo\res\FTLDemo.ico
ThreadPoolDemo\res\FTLDemo.rc2
ThreadPoolDemo\resource.h
ThreadPoolDemo\stdafx.cpp
ThreadPoolDemo\stdafx.h
ThreadPoolDemo\ThreadPage.h
ThreadPoolDemo\ThreadPoolPage.cpp
ThreadPoolDemo\ThreadPoolPage.h
ThreadPoolDemo\UpgradeLog.XML
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport.css
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport.xslt
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport_Minus.gif
ThreadPoolDemo\_UpgradeReport_Files\UpgradeReport_Plus.gif
ThreadPoolDemo\ipch\ftldemo-aff1d45c
ThreadPoolDemo\ipch
ThreadPoolDemo\res
ThreadPoolDemo\_UpgradeReport_Files
ThreadPoolDemo