-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
it can spawns more threads than cpu cores in some case, but that's OK the idea is to spawn tasks as subprocesses within threads so we count the threads of the subprocesses (and not our threads) it can spawns more threads than cpu cores because an heavy task can be spawned right after another heavy one was spawned but hasn't found the time to spawn its core itself, is usually only happens on very first tasks when nothing is already running Process.children() is very slow, see: giampaolo/psutil#1183 it's highly recommended to use python3-psutil >= 5.4.2 because some great speed-up were implemented
- Loading branch information
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters