Рет қаралды 5,456
In this video, we take a deep dive into the inner mechanics of Python's Global Interpreter Lock (GIL), which is a must for all threading and multiprocessing devs, and expose a subtle nuance, which could potentially make your code unsafe. Join us as we explore the impact of GIL on threading and multiprocessing, and discover how it affects the performance and scalability of your Python programs. By the end of this video, you'll gain valuable insights and learn proper threading practices that can help you avoid potential pitfalls.
0:00 - Overview
1:15 - Python threading example
3:50 - Threading
5:46 - GIL (Global Interpreter Lock)
6:24 - CPU bound vs IO bound
7:40 - Purpose of GIL
8:21 - Multiprocessing
9:25 - GILs downfall
Source code - github.com/daniel-boctor/Dani...
WE HAVE A DISCORD NOW! / discord
MUSIC CREDITS:
LEMMiNO - Cipher
• LEMMiNO - Cipher (BGM)
CC BY-SA 4.0
LEMMiNO - Nocturnal
• LEMMiNO - Nocturnal (BGM)
CC BY-SA 4.0