The Python Oracle

Why is ThreadPoolExecutor's default max_workers decided based on the number of CPUs?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Intrigue Looping

--

Chapters
00:00 Question
01:28 Accepted answer (Score 8)
02:18 Answer 2 (Score 2)
04:11 Thank you

--

Full question
https://stackoverflow.com/questions/5619...

Question links:
[concurrent.futures.ThreadPoolExecutor]: https://docs.python.org/dev/library/conc...
[ThreadPoolExecutor]: https://docs.python.org/dev/library/conc...
[ProcessPoolExecutor]: https://docs.python.org/dev/library/conc...

Accepted answer links:
[low-effort]: https://github.com/python/cpython/commit...
[low-discussion]: https://bugs.python.org/issue21527

Answer 2 links:
[GIL]: https://www.youtube.com/watch?

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #multithreading #performance #cpu #gil

#avk47