As we covered concurrency theory in Python in our last video (link below), in this video we'll begin practicing with Threads. This video will be divided into several parts so we can learn everything possible about Threads in Python.
Previous video: • Concorrência em Python: A Teoria de Tudo (...
We'll learn many interesting things, such as:
How to create threads with "threading.Thread"
How to start one or more threads with thread.start()
What happens when you start a thread
How to make Python wait for a thread with thread.join()
How to create a loop that starts and manages which threads are active or terminated
How to handle errors in separate threads
How to create a threading.excepthook to catch leaking exceptions
And many other things (like the full path of a thread). So, let's get started?
Repository link:
https://github.com/luizomf/concurrent...
I've also created a playlist:
• Programação concorrente em Python
My Courses: https://www.otaviomiranda.com.br/
Newsletter: https://luizomf.substack.com/
Chapters
00:00:00 - Introduction to the playlist on concurrency in Python
00:04:40 - From synchronous code to concurrency with Threads
00:10:10 - What are Threads in summary?
00:11:11 - Python 3.14 with GIL disabled, free threading
00:12:51 - How to create a thread with threading.Thread
00:17:21 - How to start a thread with threading.Thread, the start
00:18:30 - Threads are different execution contexts
00:21:00 - join() waits for the Thread to finish executing
00:24:00 - Cautions when using Threads, avoid blocking in the wrong place
00:26:20 - Avoid "busy wait" loops hitting 100% CPU
00:29:19 - Starting and stopping Threads in a tight loop
00:33:51 - What about errors? What if an exception occurs in a Thread?
00:37:00 - Errors can pass silently!
00:38:20 - Where to catch errors?
00:39:20 - excepthook, your own custom_hook and that's not cool
00:43:30 - Remember the Zen of Python
#Python #threading #thread #concurrency
Nesta página do site você pode assistir ao vídeo on-line Introduction to Threads in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Otávio Miranda 29 Outubro 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,281 vezes e gostou 235 espectadores. Boa visualização!