Screens

Grill/grills/:id

Skip to content

Node.js runtime internals · round 3

Open

10 of 15 answered · 10 judged

Q06/ 15

T04Timers and scheduling

A timer set for 100 ms fires at 340 ms. List the possible causes, most likely first.

Your answer via this pageNov 25, 2026

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.

strong

Holds under load.

Nov 25, 2026

Right order, and you named the mechanism each time. To reach level 4, add that timers are checked once per loop iteration, so a slow poll phase delays them too.