"Timers rely on the network poller", why is that?

103 views
Skip to first unread message

Vincent Blanchon

unread,
Apr 17, 2020, 6:10:58 AM4/17/20
to golang-nuts
Hi everyone,

From what I understand, timers are ran by:
- the P holding them
- other P if timer-stealing happen (thanks to the async preemption that should not happen often)
- sysmon thread that, periodically, check if some timers have to run

But, in the comments of the code, I have seen this sentence "Timers rely on the network poller". I wonder how is it related to the net poller, I do not get the relation here.
Any help is appreciated :)

Thank you

Amnon Baron Cohen

unread,
Apr 17, 2020, 9:20:23 AM4/17/20
to golang-nuts
The go runtime does its waiting (both for timers and network events) in netpoll.
Reply all
Reply to author
Forward
0 new messages