The Python Oracle

What are the differences between the threading and multiprocessing modules?

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: Puzzle Meditation

--

Chapters
00:00 Question
01:24 Accepted answer (Score 331)
08:59 Answer 2 (Score 46)
10:12 Answer 3 (Score 13)
14:22 Answer 4 (Score 5)
14:56 Thank you

--

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

Accepted answer links:
[What Giulio Franco says]: https://stackoverflow.com/a/18114475
[concurrent.futures]: http://docs.python.org/3/library/concurr...
[Programming guidelines]: http://docs.python.org/3/library/multipr...
[fork]: https://docs.python.org/3/library/multip...

Answer 3 links:
[What is the global interpreter lock (GIL) in CPython?]: https://stackoverflow.com/questions/1294...
[8 hyperthread]: https://superuser.com/questions/133082/w...
[image]: https://i.stack.imgur.com/2x04m.png
[Plot data]: https://gist.github.com/cirosantilli/46c...
[What do 'real', 'user' and 'sys' mean in the output of time(1)?]: https://stackoverflow.com/questions/5564...
[GitHub upstream + plotting code on same directory]: https://github.com/cirosantilli/python-c...
https://rohanvarma.me/GIL/
[target=]: https://docs.python.org/3/library/thread...

Answer 4 links:
[this link]: http://www.quantstart.com/articles/Paral...

--

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

--

Tags
#python #multithreading #parallelprocessing #process #multiprocessing

#avk47