Python Tutorial 20: Understanding Python Threads and Threading

preview_player
Показать описание
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video we show step-by-step instructions on how to understand and use Python Threads and Threading. We write demonstration code and give examples and solutions. I do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming
Рекомендации по теме
Комментарии
Автор

Your lessons are so clear and understandable! Please, don't stop! We need more and more Python lessons!

slonbeskonechen
Автор

The reason to why you need a comma after a single value is that the args must be of type tuple, and in python a tuple with one element must be followed by a comma to differentiate a tuple and a single value wrapped around a comma.
value_1 = (100)
value_2 = 100
value_3 = (100, )

print(value_1 == value_2) # True
print(value_1 == value_3) # False

print(type(value_1)) # int
print(type(value_3)) # tuple

ProgressiveDeveloper
Автор

That was an excellent example of the need for
using threading without the complexities of actually manipulating hardware. One can easily see the process of one thread running while the other thread is performing a completely separate task. Great video!

bassman
Автор

I never realized that it was even possible to run multiple functions at the same time... Now that I understand threading, I can certainly imagine the many use cases for it. As always, great lesson! Thanks Paul!

dylanr
Автор

Thank you so much, Paul!, I'm an Electrical engineer student and all of your videos Are a gold mine helping me with everything.

eyal
Автор

This was a fun lesson. I got cute and modified the code to accept user input on the delay parameters and the limits of "j". I set "j" via input to run as long as it was less than "limit" and the program stops after it reaches the limit. Very useful. Just think of the possibilities....😎 You are doing the Lord's work, Paul.

jamesd
Автор

Never heard of Threading. Really educative video and simple explanation! Thanks this will be very useful!

jeanknecht
Автор

Great 1st season! So Excited about 3D Graphics and AI!!! Thank you for your commitment on youtube, teaching people important things for free!

ricklawitzky
Автор

This is an extremely useful lesson for building circuits that do multiple things at the same time. I had to learn this when I built a robotic car in order for all of it's part to work together. This will be mandatory viewing for students. Thanks for yet another great lesson. You presented it in a much easier way than my professor did at the University. Thanks again Paul!

hughpatterson
Автор

Thank you for this beginner's intro to Python! I look forward to continuing with Visual Python - you have really made this fun and understandable. I hope to keep plugging away until I catch up to your current series. Best wishes, Steve

pokerface
Автор

Thanks for this first 20 tutorial introduction! Can't wait to do the next in the series with Python graphics!

Lehibob
Автор

This series have been a blessing for my uni python course! Thanks a bunch Paul!!!

bellzon
Автор

I am Legend. Enjoying the lessons. Thank you for the wonderful content. Looking forward to Visual Python.

mikew
Автор

Finally I found a way to stop the terminal without crashing the whole program. Paul McWhorter finds an x in the upper window to stop it but I cannot get it on my Visual Studio. However if I right click under (not on) the little button that says terminal at the top of the terminal window it gives me an option to kill the terminal. You may have to feel around a little bit to get the drop down menu. Great lesson Paul!!!

chalmerditmars
Автор

Thank you, Paul! for these wonderful lessons.

kanishkar
Автор

Extraordinary.... Eagerly waiting for the future lessons..

pralaymajumdar
Автор

Love Your content.
I've been here since the first class.
Thank you so much Paul.
🤗👍

martimfreire
Автор

This mini-serie was a blast! Will def continue the journey ahead. (8th-day-in-a-row) 💥☕

maku
Автор

I love you Paul, you are my best teacher

kirubeltekle
Автор

Thanks Paul for another tremendous lesson. I'm looking forward to Visual Python.

cbrombaugh