相关疑难解决方法(0)

Python 线程定时器如何在内部工作?

我想知道python是如何threading.Timer工作的。

更详细地说,当我运行几个时threading.Timer,它是否运行单独的线程来计算时间并运行处理程序?

或者一个线程一起管理和计数几个计时器?

I am asking because my application need to schedule many event, But

If threading.Timer runs separate each thread for counting a timer, and i run many timers, it may affect performance so much.

So i am worry that if i have to implement a scheduler running only one thread if it has big effect in performance.

python multithreading timer scheduler

1
推荐指数
1
解决办法
1072
查看次数

标签 统计

multithreading ×1

python ×1

scheduler ×1

timer ×1