How scalable is System.Threading.Timer?

前端 未结 4 1056
后悔当初
后悔当初 2020-12-09 03:12

I\'m writing an app that will need to make use of Timers, but potentially very many of them. How scalable is the System.Threading.Timer class? Th

4条回答
  •  时光说笑
    2020-12-09 04:03

    ^^ as DannySmurf says : Consolidate them. Create a timer service and ask that for the timers. It will only need to keep 1 active timer (for the next due call) and a history of all the timer requests and recalculate this on AddTimer() / RemoveTimer().

提交回复
热议问题