Learn Python MULTITHREADING in 8 minutes! 🧵

  Рет қаралды 18,567

Bro Code

Bro Code

Күн бұрын

Пікірлер: 35
@BroCodez
@BroCodez 6 ай бұрын
# multithreading = Used to perform multiple tasks concurrently (multitasking) # Good for I/O bound tasks like reading files or fetching data from APIs import threading import time def walk_dog(first, last): time.sleep(8) print(f"You finish walking {first} {last}") def take_out_trash(): time.sleep(2) print("You take out the trash") def get_mail(): time.sleep(4) print("You get the mail") chore1 = threading.Thread(target=walk_dog, args=("Scooby", "Doo")) chore1.start() chore2 = threading.Thread(target=take_out_trash) chore2.start() chore3 = threading.Thread(target=get_mail) chore3.start() # .join() ensures that all tasks are completed before proceeding chore1.join() chore2.join() chore3.join() print("All chores are complete!")
@mxfze
@mxfze 6 ай бұрын
bro taught me in 8 minutes what a year of school could not 🗿
@RoyZennet
@RoyZennet 5 ай бұрын
LMAOOOOO SAME DUDE
@rola8798
@rola8798 Ай бұрын
what school did you go to bro?
@lucidd_6464
@lucidd_6464 6 ай бұрын
Almost at 2 Million! 🎉 I have watched your HTML/CSS course and I learned in about 4 days. I am now making websites for people and they are amazed by them. I am also learning C++ and it is going well because of you. Thank you for opening up this possible future for me and making my dreams come true! Thank you Bro!
@abdulfataishorunke8241
@abdulfataishorunke8241 10 күн бұрын
concise and precise video. Thump up!
@JoshuaB86
@JoshuaB86 4 ай бұрын
Great explanation & demo. I wish this was available when I first learned threading.
@faatemehch96
@faatemehch96 3 ай бұрын
The best video for threading. Thank you 👍
@SamAlizadeh-w6e
@SamAlizadeh-w6e Ай бұрын
The way that you explain is awesome🤩
@penjaninyirenda9454
@penjaninyirenda9454 4 ай бұрын
Thank you! I was having trouble understanding this but you made it so easy👍
@WorkBob-m5h
@WorkBob-m5h 5 ай бұрын
Very well presented! Thank you.
@jeevan7657
@jeevan7657 23 күн бұрын
Thank you so much for the lecture 😊
@animetime3020
@animetime3020 6 ай бұрын
Great Bro. It would be great help if you could make a tutorial on regular expression as well.
@huyne_info
@huyne_info 14 күн бұрын
Thank you so much Bro!!!
@uzairzarry8691
@uzairzarry8691 6 ай бұрын
Great explanation
@Remesayy
@Remesayy 6 ай бұрын
Thanks for the video
@wyr29
@wyr29 6 ай бұрын
hello chad , please make tutorials on data structure and algorithms in c++ ,
@yesiam6051
@yesiam6051 6 ай бұрын
Exactly what I needed!
@robert-qn8hy
@robert-qn8hy 6 ай бұрын
Thanks a lot ...can you also make a tutorial on python asynchronous programming
@onehmong9368
@onehmong9368 Ай бұрын
Very nice Bro Code youre truly a bro. ascynio???
@vaibhavmaniar1597
@vaibhavmaniar1597 2 ай бұрын
What about multi-threading in multi-core CPU systems? In the case of multi-core CPU systems, multiple threads can run their tasks parallelly. Is that Python not capable enough to run multiple tasks parallelly?
@YoruAmeHD
@YoruAmeHD 6 ай бұрын
i get error of no attribute 'Thread'(most likely due to a circular import) any help?
@coder_09_
@coder_09_ Ай бұрын
Whats the difference between async and threadin
@marktsh
@marktsh 6 ай бұрын
Please make full course about Rust 🙏
@d-day67
@d-day67 18 күн бұрын
How many threads are possible?
@layfonkolar108
@layfonkolar108 6 ай бұрын
Bro can you please use ui with a pop out color to see clearly
@robert-qn8hy
@robert-qn8hy 6 ай бұрын
Bro can you please a make video on python daemon threads please...
@СараЕркінбаева
@СараЕркінбаева 6 ай бұрын
What laptop do you use for it?
@angelnoyola4830
@angelnoyola4830 6 ай бұрын
Hey man I have a question I am 20 years old I feel like I would be going in way to late into the industry of engineering so would like some advice if you could, if you were to restart how would you do it with todays economy would you still look for a bootcamp and go with that or go a different route, like for me I was thinking I could go to college for 2 years as an engineer which would be an associates just to build the resume and after that go into a bootcamp
@angelnoyola4830
@angelnoyola4830 6 ай бұрын
Or do any of yall recommend a bootcamp? Please I would love to know
@TechTalk870
@TechTalk870 6 ай бұрын
I'm very interested if you could make an AI course 😊😇
@Un_revealing
@Un_revealing 6 ай бұрын
I always wondered Y can't I just pass args Turns out it needs to be represented as tuple Thanks now I don't need to create wrapper functions, 🙃🙃
@benjmeistah
@benjmeistah 3 ай бұрын
dud, ffs please carry my unborn children! Thank You so much :D
@akulalokesh6866
@akulalokesh6866 6 ай бұрын
hii bro
@rambogt_r
@rambogt_r 2 ай бұрын
could you please create a multiprocessing like i/o and cpu operation in python parallelly
threading vs multiprocessing in python
22:31
Dave's Space
Рет қаралды 604 М.
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 175 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
SUPER() in Python explained! 🔴
13:06
Bro Code
Рет қаралды 18 М.
How I Would Learn Python FAST (if I could start over)
12:19
Python - полный курс для начинающих. Этот навык изменит твою жизнь.
5:27:42
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 461 М.
Request API data using Python in 8 minutes! ↩️
8:34
Bro Code
Рет қаралды 45 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 1 МЛН
Learn Python DECORATORS in 7 minutes! 🎊
7:22
Bro Code
Рет қаралды 24 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 353 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 314 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 699 М.