mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #17914: Use os.cpu_count() instead of multiprocessing.cpu_count() where
applicable.
This commit is contained in:
parent
c723da361a
commit
37cfb0a920
4 changed files with 7 additions and 13 deletions
|
@ -1664,7 +1664,7 @@ with the :class:`Pool` class.
|
|||
callbacks and has a parallel map implementation.
|
||||
|
||||
*processes* is the number of worker processes to use. If *processes* is
|
||||
``None`` then the number returned by :func:`cpu_count` is used. If
|
||||
``None`` then the number returned by :func:`os.cpu_count` is used. If
|
||||
*initializer* is not ``None`` then each worker process will call
|
||||
``initializer(*initargs)`` when it starts.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue