[issue34060] regrtest: log "CPU usage" on Windows

Jeremy Kloth report at bugs.python.org
Sun Jul 15 10:26:59 EDT 2018


Jeremy Kloth <jeremy.kloth+python-tracker at gmail.com> added the comment:

Correct.  Windows provides the building blocks for implementing getloadavg(), but does not provide an interface that does the averaging.  That is deferred to a per application basis.  The best that an application can do for that is to use thread pools.  You can think of thread pools as kernel-managed threads (different from user-managed threads via CreateThread()).

As of Win10 1703, any process linked with DLLs automatically have thread pools created for them (to parallel-ize the loading of said DLLs).  Leveraging that feature would minimize the costs incurred to do the running average.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34060>
_______________________________________


More information about the Python-bugs-list mailing list