Message321692
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. |
|
Date |
User |
Action |
Args |
2018-07-15 14:26:59 | jkloth | set | recipients:
+ jkloth, paul.moore, vstinner, giampaolo.rodola, tim.golden, zach.ware, steve.dower, ammar2 |
2018-07-15 14:26:59 | jkloth | set | messageid: <1531664819.9.0.56676864532.issue34060@psf.upfronthosting.co.za> |
2018-07-15 14:26:59 | jkloth | link | issue34060 messages |
2018-07-15 14:26:59 | jkloth | create | |
|