How do Timer event handlers work in .Net? Are they proactive?

I have a WinForm timer with a short interval (33 ms).

I have other code in my application that turns this timer on and off.

Is it true in the timer event handler that timer.Enabled = true? Or is it possible that by the time the handler starts execution, another piece of code might disable the timer?

+4
source share
1 answer

Is it true that timer.Enabled = true?

. , Tick, - - . , . - , , , . , , Tick .

. , , . , .

System.Timers.Timer, threadpool , . .

+5

Source: https://habr.com/ru/post/1629441/


All Articles