Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Multithreading in Python | 54

26.5K views on YouTube

In this video, we’ll dive deep into the concept of Multithreading — from theory to practical implementation.

Here’s what we’ll cover 👇

▶️ What are Threads?
We’ll understand what threads are, their advantages, and in which scenarios using threads is the best approach.

▶️ Multithreading vs Multiprocessing:
We’ll explore the difference between processes and threads, looking at execution, memory sharing, and performance from both perspectives.

▶️ Practical Implementation:
We’ll implement real examples of both multithreading and multiprocessing, to clearly understand the differences.

▶️ Ways to Implement Multithreading:
We’ll cover two important approaches to implement multithreading in Python:

– Class-level multithreading

– Function-level multithreading
Both will be explained step-by-step.

▶️ Thread Creation Syntax:
We’ll explore the syntax for creating threads using Python’s built-in threading tools.

▶️ Thread Scheduling & Execution:
We’ll understand how the scheduler decides which thread to execute and how multiple threads run concurrently.

▶️ join() Method:
We’ll see how to use the join() method to synchronize threads and join them with the main thread.

▶️ GIL (Global Interpreter Lock):
We’ll discuss what the GIL is and its actual impact on multithreading in Python.

▶️ GIL, Memory & Execution Comparison:
Lastly, we’ll compare the memory model of threads vs processes and understand how GIL affects execution in real scenarios.

By the end of this video, you’ll have a complete understanding of multithreading, multiprocessing, GIL, and how they affect performance in Python — explained with practical coding examples.

Check out our courses:

Agentic AI Engineering with Python : https://go.telusko.com/agentic-ai-python
Coupon: TELUSKO10 (10% Discount)

Master Java Spring Development : https://go.telusko.com/learn-master
Coupon: TELUSKO10 (10% Discount)

For More Queries WhatsApp or Call on : +919008963671

website : https://telusko.com/

Udemy Courses:

Java Spring:- https://go.telusko.com/Udemyjavaspring
Java:- https://go.telusko.com/udemyteluskojava
Spring: https://go.telusko.com/udemyteluskospring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopython
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodocker

Instagram : https://www.instagram.com/navinreddyofficial/
Linkedin : https://in.linkedin.com/in/navinreddy20
WhatsApp : https://go.telusko.com/whatsapp
Discord : https://discord.gg/D8hWe9BqfF