[issue20505] Remove resolution from selectors and granularity from asyncio

Guido van Rossum report at bugs.python.org
Thu Feb 6 21:06:25 CET 2014


Guido van Rossum added the comment:

>
> Let me state this last point once again: no busy loop can occur now that
> timeouts are rounded up.
>

How sure are you? Suppose I use poll() with a 0.5 msec timeout. This
presumably gets rounded up to 1 msec. But if the system clock has e.g. a 10
msec resolution, won't this still wait 0 msec? Or will it wait until the
next "tick" occurs, which could be anywhere between 0 and 10 msec in the
future? But if so, why wouldn't a poll() with a 0 msec timeout also wait
between 0 and 10 msec?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20505>
_______________________________________


More information about the Python-bugs-list mailing list