Threading vs Multiprocessing in Python - Advanced Python 15 - Programming Tutorial
In this Python Advanced Tutorial, we will be learning about Threading and Multiprocessing in Python. With Threading and Multiprocessing you can run code in parallel and speed up your code. This Tutorial will cover:
- the difference between a Process and a Thread
- The advantages and disadvantages of both
- The Global interpreter lock (GIL)
- How and why Threads are limited by the GIL
- How to use the built-in threading and multiprocessing module to create and run multiple threads or processes.
~~~~~~~~~~~~~~ GREAT PLUGINS FOR YOUR CODE EDITOR ~~~~~~~~~~~~~~
Write cleaner code with Sourcery: https://sourcery.ai/?utm_source=youtube&utm_campaign=pythonengineer *
Get my FREE NumPy Handbook:
https://www.python-engineer.com/numpybook
Notebooks available on Patreon:
https://www.patreon.com/patrickloeber
⭐ Join Our Discord : https://discord.gg/FHMg9tKFSN
A written Tutorial can be found here:
https://www.python-engineer.com/courses/advancedpython/15-thread-vs-process/
You can find me here:
Website: https://www.python-engineer.com
Twitter: https://twitter.com/patloeber
GitHub: https://github.com/patrickloeber
#Python
----------------------------------------------------------------------------------------------------------
* This is a sponsored link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support!