使用计时器队列 [英] Using Timer Queue

查看:123
本文介绍了使用计时器队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用CreateTimerQueueTimer函数使用25-30个计时器是否安全?

Is it safe to use 25-30 timers using the CreateTimerQueueTimer function?

推荐答案

通过阅读 MSDN上的CreateTimerQueueTimer文档( CreateTimerQueueTimer函数(Windows) [
By reading the documentation of CreateTimerQueueTimer on the MSDN (CreateTimerQueueTimer Function (Windows)[^]), we can see that this kind of timers are handled using a thread pool whose standard size is 500 threads.
Then there are no problems in using 25-30 timers.


这篇关于使用计时器队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆