В06/ 15
Т04Timers and scheduling
A timer set for 100 ms fires at 340 ms. List the possible causes, most likely first.
Ваш ответ
Most likely the loop was busy: a long synchronous task or a burst of promise jobs, so the timers phase came late. Next, a garbage collection pause. A major collection can take tens of milliseconds. Then CPU starvation: a throttled container or a noisy neighbour. Last, my own code re-armed the timer.
Запрос для агентаjudge_grill_answer
Проверь мои ответы в разборе «Node.js runtime internals · round 3» (g3) через judge_grill_answer.