Global Interpreter Lock (GIL) in Python? 2MinutesPy

  Рет қаралды 4,961

2MinutesPy

2MinutesPy

Күн бұрын

#gil #globalinterpreterlock #coding #python #pythonprogramming #2minutespy
🖐Hey, want to know about Global Interpreter Lock in Python? In this Python tutorial, we dive into a fundamental concept: Global Interpreter Lock in Python.
Ever wondered why Python sometimes feels like it's taking a leisurely stroll instead of a sprint? In this video, we demystify the Global Interpreter Lock (GIL) in Python. No jargon, just a simple explanation of why your Python code might not be as speedy as you'd expect. Let's uncover the secrets behind Python's GIL without diving into the technical deep end.
More 2 Minutes Python Tutorial:
What is a Lambda Function in Python? • What is a Lambda Funct...
Why __init__.py File is Used in Python Projects: • Why __init__.py File i...
if _name_ == "__main__" in Python: • What if __name__ == '_...
Python's seek() and tell() functions in 2 Minutes: • Understanding Python's...
- Python Threading in 2 Minutes: • Python Threading in 2 ...
- Python's super() function in 2 Minutes: • Python's super() Funct...
- How to Use *args and **kwargs in 2 Minutes: • How to Use *args and *...
- Python's ABC (Abstract Base Class) in 2 Minutes: • Python's ABC (Abstract...
- Python's _init_ Method in 2 Minutes: • Python's __init__ Meth...
Python's _getitem_ Method in 2 Minutes: • Python's __getitem__ M...
Subscribe to / @2minutespy for more such videos.
@2MinutesPy

Пікірлер: 5
@alicemkoyun8923
@alicemkoyun8923 6 ай бұрын
Awesome video, and my friend, you've got a new subscriber:) Keep 'em coming
@2MinutesPy
@2MinutesPy 6 ай бұрын
Thanks mate
@linuxeducation4058
@linuxeducation4058 6 ай бұрын
Interesting! In my experience, my code runs faster on Linux. Why? Better scheduler?
@animeshsahu2803
@animeshsahu2803 6 ай бұрын
With and without you used is confusing, the print() statement in both code have "without" in them. And if you just join the thread there's no GIL involved right, since there's no thread running in parallel, its just normal flow of code top to bottom along with some thread initialization and destroy in between?
@2MinutesPy
@2MinutesPy 6 ай бұрын
That's why there is a disclaimer that we are just trying to replicate the GIL by stopping the second thread until the first thread is completed.
A first look at a faster, no-GIL Python
6:56
InfoWorld
Рет қаралды 7 М.
Python is NOT Single Threaded (and how to bypass the GIL)
10:23
Jack of Some
Рет қаралды 107 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 7 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 33 МЛН
__call__ in Python
2:11
2MinutesPy
Рет қаралды 4 М.
Python's __init__ Method | 2MinutesPy
1:47
2MinutesPy
Рет қаралды 9 М.
*Args and **Kwargs in Python
3:49
b001
Рет қаралды 253 М.
What if __name__ == '__main__' does in Python | 2MinutesPy
2:12
How to achieve Concurrency in Python?
1:54
2MinutesPy
Рет қаралды 1,2 М.
SH: Let's build a data pipeline with Prefect!
1:46:51
CodeSeoul
Рет қаралды 7 М.
Why __init__.py File is Used in Python Projects | 2MinutesPy
2:40
Clicks чехол-клавиатура для iPhone ⌨️
0:59
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 2,1 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 6 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 443 М.