Concurrency Concepts in Python

  Рет қаралды 10,062

MathByte Academy

MathByte Academy

Күн бұрын

Пікірлер: 86
@santoshkumar-dr4qg
@santoshkumar-dr4qg Жыл бұрын
Many times in the past, I attempted to understand the concept of multithreading programming in Python, but was unable to fully comprehend it and ultimately gave up. However, thanks to your detailed explanation, I now feel much more comfortable with the concept. I am grateful for the valuable content you have provided.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Glad I could help!
@justatula
@justatula Жыл бұрын
He explains like a hot knife over a butter. Such detailed explanation I don't find anywhere.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Glad you enjoyed the video!
@nysergu6210
@nysergu6210 25 күн бұрын
Fred, you are a priceless addition to to programming world. Your ability to explain complex topics and switch from high level, theoretical, abstractions to implementation is unparalleled. I really enjoyed your courses and have yet to find better. I'm really glad you started a KZbin channel.
@Costin8406
@Costin8406 3 ай бұрын
this is great! i am currently on your 4th deep dive course and just found out recently you had a youtube channel... omg what a gem. Best teacher, you deserve more recognition.
@mathbyteacademy
@mathbyteacademy 3 ай бұрын
Thank you!!
@Costin8406
@Costin8406 3 ай бұрын
@@mathbyteacademy any news on your new course?
@abdellahiaioun8430
@abdellahiaioun8430 9 ай бұрын
I had to stop the video, to say thank you. This video is a gem. I am gonna give the rest of the videos in this channel a look, if they are of the same quality, then hey, the whole channel is a GEM :)
@mathbyteacademy
@mathbyteacademy 9 ай бұрын
Glad you enjoyed it!
@driyagon
@driyagon 9 ай бұрын
this is one of the highest quality content i have seen. thank you for your efforts
@mathbyteacademy
@mathbyteacademy 9 ай бұрын
You're welcome!
@avr4dev
@avr4dev 6 ай бұрын
This video definitely deserves like and comment for better promotion.
@mathbyteacademy
@mathbyteacademy 6 ай бұрын
Thanks! That would be nice, but very few people bother to take the time to do so.
@kurianpius
@kurianpius Жыл бұрын
Thank you Fred . Crystal clear as always!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
You are welcome!
@gorandev
@gorandev Жыл бұрын
Thank you Fred for explaining all concepts so thoroughly. I bought all 4 parts of your Python 3 Deep Dive course on Udemy, and I keep recommending them to others.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thank you!!
@MsFxtrdr
@MsFxtrdr Жыл бұрын
Same here. I work for a stock exchange doing analytics and the first thing I ask devs to do during their first month when they're waiting for accesses and stuff is to go through part 1 and part 4 of Fred's course. They have "aha" moments every day.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thanks, glad to hear about those aha moments 😀
@MsFxtrdr
@MsFxtrdr Жыл бұрын
@@mathbyteacademy now if we could only get a second Fred to do a similar course on Rust … 👌🏼
@mathbyteacademy
@mathbyteacademy Жыл бұрын
😀 If you do find a good Rust course, please post it here! I'd be interested!
@python_by_abhishek
@python_by_abhishek Жыл бұрын
One of your huge fan Fred. Following your Deep Dive series from Udemy as well. Your lectures are like those movies which not only are entertaining but also have BTS in the end. The way you explain the BTS of python concepts is amazing. I am Professor myself who teaches Python to Engineering undergraduates and I always tell them that you are my teacher. Thanks for giving your knowledge to this world.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thank you Abhishek, glad you like the videos! But what does BTS stand for? I know it's a Korean band, but not sure what you mean here 😀
@python_by_abhishek
@python_by_abhishek Жыл бұрын
@@mathbyteacademy Behind The Scene
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Ah, thanks!!
@szymonpiechutowski2340
@szymonpiechutowski2340 4 ай бұрын
​@@mathbyteacademy The dirty secret of our master is out: he listens to BTS when he's not coding or teaching 😂
@ryzenvidia
@ryzenvidia 10 ай бұрын
superb. just what I need to master. patiently waiting for the full course to come out. Thanks Dr. Fred
@mathbyteacademy
@mathbyteacademy 10 ай бұрын
Thanks!
@redDuck757
@redDuck757 Жыл бұрын
I want to thank you for your work! You are my favorite lecturer and the best one in my experience. I bought all your courses on udemy and this was the best way to spend that money and best course. Just want to thank you once again!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thank you!
@MrBfaris96
@MrBfaris96 Жыл бұрын
Really great conceptual overview and helpful tips on libraries at the end!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Glad it was helpful!
@maxjerman
@maxjerman Жыл бұрын
You're one of the very best in teaching Python. Thanks!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thank you!
@sampri22
@sampri22 7 ай бұрын
I wish I had skipped Uni (was a long time ago though) and just graduated from your academy. Well done, sir!
@mathbyteacademy
@mathbyteacademy 7 ай бұрын
Hehe, glad you like the content!
@ahmadfaraz9279
@ahmadfaraz9279 Жыл бұрын
Great explanations! The completeness and clarity of this video is awesome and really helpful for beginners like me . Thanks!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thanks!
@maganzo
@maganzo Жыл бұрын
Btw Fred I finished all 4 parts of Deep Dive, and I wanted to say you helped me a lot. You are a great educator and by coincidence, we share the same alma mater Strathclyde University!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Glad you liked them. Strathclyde was great, I really enjoyed my stay in Glasgow! Small world 😀
@maganzo
@maganzo Жыл бұрын
​@@mathbyteacademy Will there be Deep Dive 5? (perhaps Design Patterns is a good topic for such a venture)
@mathbyteacademy
@mathbyteacademy Жыл бұрын
I've started work on an async course - but will be quite a while before I get something out.
@maganzo
@maganzo Жыл бұрын
@MathByte Academy wow can't wait for the release
@imutyshev
@imutyshev Жыл бұрын
Awesome news! Can’t wait to buy separate course on async from you!!!
@ElectronToInterface
@ElectronToInterface Жыл бұрын
You’re such an inspiration Fred. Many Thanks for such videos.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thanks!
@eugenemwangi6914
@eugenemwangi6914 7 ай бұрын
Thanks for this. It is very helpful
@mathbyteacademy
@mathbyteacademy 7 ай бұрын
Glad it was helpful!
@kafychannel
@kafychannel Жыл бұрын
The greatest explanation, thanks ❤
@mathbyteacademy
@mathbyteacademy Жыл бұрын
You're very welcome!
@omrieliyahulevy7985
@omrieliyahulevy7985 Жыл бұрын
It's a *great* video.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thank you!
@DamoOne
@DamoOne Жыл бұрын
Your content is excellent Fred. Thank you!
@shadowmind_rex
@shadowmind_rex 11 ай бұрын
Fred you are an amazing teacher. Huge respect for you!! And really thank you for your time and effort for the quality content. Also, will you also be making videos on how you use your favourite IDE, some tips and tricks or setup those ?
@mathbyteacademy
@mathbyteacademy 11 ай бұрын
Thanks, glad you like the content. I probably won't do videos on PyCharm (which is the IDE I use, not VSCode) as it's pretty straightforward for the most part - but I do have a video in this channel that describes how to set up PyCharm with Python virtual environments: kzbin.info/www/bejne/Z6rTiWyJh9ZoqsU
@johnmckenna7121
@johnmckenna7121 Жыл бұрын
Hi Fred, I think I seen under one of your other videos you mentioned that you have been working on a async course for Udemy, I was wondering if this is still in progress, and if so is there at eta on it? Also if you haven't finished it yet, I would suggest to show the comparison between part 2 deep dive series, and the alternative in async, I recall you mentioning that part of the series is outdated, yet I can't seem to get my head around how they relate. Anyways keep up the good work, I have gotten so much benefits from your courses.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Hi John, no ETA yet on an async course - just finished the pydantic course, and taking a break for the holidays before resuming my work on it. Before the natuve coroutine capabilities of Python, you could define coroutines using generator functions (yield can both send and receive data). This has been deprecated, and instead coroutines are now natively available using things like async def and await, along with the functionality available from the asyncio standard library.
@nombreinvicto
@nombreinvicto Жыл бұрын
Thanks a lot for sharing the detailed knowledge Fred. Appreciate it!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
My pleasure!
@lersam1
@lersam1 Ай бұрын
Hi, when we will se your course on asyncio. Thank You
@bearmond
@bearmond Жыл бұрын
Jeez that was so good
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thanks, glad you liked it!
@iChrisBirch
@iChrisBirch Жыл бұрын
Thanks again for another great video explaining difficult concepts. I'm always recommending your channel and Udemy courses to all of my colleagues that want to improve their Python.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thanks for that!
@iwswordpress
@iwswordpress 11 ай бұрын
Excellent as ever!
@mathbyteacademy
@mathbyteacademy 10 ай бұрын
Thank you!
@nnnpooh
@nnnpooh 10 ай бұрын
Many thanks!
@mathbyteacademy
@mathbyteacademy 10 ай бұрын
You're welcome!
@harshbiyani3048
@harshbiyani3048 4 ай бұрын
Hi Fred, do you have any plans to extend the Deep dive series to include AysncIO ?
@mathbyteacademy
@mathbyteacademy 4 ай бұрын
Hi, not at the moment.
@harshbiyani3048
@harshbiyani3048 4 ай бұрын
@@mathbyteacademy 😔
@samuellerner4174
@samuellerner4174 Жыл бұрын
Thank you Fred. where can i find, example for running async progrems, for none web app
@mathbyteacademy
@mathbyteacademy Жыл бұрын
I'm working on an async course right now, but won't be out till end of the year. I have a video showing an example of using async with queues, but that's not a general/broad concept async video. I would search for something on KZbin - in particular this series by @EdgeDB is really good: kzbin.info/aero/PLhNSoGM2ik6SIkVGXWBwerucXjgP1rHmB
@samuellerner4174
@samuellerner4174 Жыл бұрын
@@mathbyteacademy thank you
@frustratedalien666
@frustratedalien666 10 ай бұрын
Another amazing video from. I have all of your Udemy courses and they are the best things I've bought on Udemy in the last decade. Would you consider making a course going into the details of asyncio starting right at the beginning? That's one part of Python I am not completely comfortable with 😅
@mathbyteacademy
@mathbyteacademy 10 ай бұрын
Glad you like them!
@carlbaillargeon4037
@carlbaillargeon4037 Жыл бұрын
Can you use multiprocessing in combination with asyncio, meaning having one event loop per process? Would it be beneficial for I/O workloads? Thank you as always Fred!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Sure, I don't see why not (I've seen this done with threading not async, but I don't see why that would not work in theory). I would argue though, that if you need the CPU work distributed, you might be better off looking at an external queue and workers (each one can use async for I/O). If you use subprocesses you are limiting your scale to a single machine. If that single machine ever becomes insufficient for the load, you're only option (without rewriting your software) is to scale the machine up (beefier CPU, more cores, etc). With the queue/worker approach (I have an example video on that using Redis as a queue) you can easily scale out without any software rewrites (and the code is much much simpler).
@lukashk.1770
@lukashk.1770 Жыл бұрын
still there is a lack of good resources about async python. it would be good to have full udemy part about it
@szlu
@szlu Жыл бұрын
Hi, if one thread paused and gave control back to main loop, but it must still wait and handle the callback of the I/O, right? dosen't it mean the the thread must still run somehow?
@mathbyteacademy
@mathbyteacademy Жыл бұрын
there are no callbacks - when the thread resumes, it checks to see if the I/O op completed or not (if not, it will just wait and eventually get switched out)
@szlu
@szlu Жыл бұрын
@@mathbyteacademy thanks for the explanation
@fatalsg92
@fatalsg92 3 ай бұрын
The real question is if you're going to optimize for performance, why use Python at all?
@mathbyteacademy
@mathbyteacademy 3 ай бұрын
Sure, you could just choose to write in C, Rust, etc. But then you'd lose out on packages such as PyTorch, TensorFlow, Scikit-learn, Keras, Theano, FastAPI, Pydantic, etc - basically the Python package ecosystem. (and many of those packages *are* written in C/Rust/etc so from a pure performance perspective using Python does not give up much).
Python Threading Examples - Issues and Caveats
54:00
MathByte Academy
Рет қаралды 4,5 М.
Python Logging Demystified: Part 1 - Concepts
1:11:16
MathByte Academy
Рет қаралды 3,1 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Next-Level Concurrent Programming In Python With Asyncio
19:19
ArjanCodes
Рет қаралды 184 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 312 М.
Understanding Python: Concurrent Coroutines
21:38
Jake Callahan
Рет қаралды 2,2 М.
A first look at a faster, no-GIL Python
6:56
InfoWorld
Рет қаралды 8 М.
AsyncIO, await, and async - Concurrency in Python
9:12
Socratica
Рет қаралды 116 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
Demystifying Python's Async and Await Keywords
1:18:53
JetBrains
Рет қаралды 100 М.
A Deep Dive into Python's Dataclasses (Part 1)
1:07:42
MathByte Academy
Рет қаралды 11 М.
Intro to async Python | Writing a Web Crawler
14:23
mCoding
Рет қаралды 82 М.
Multiprocessing in Python
11:54
NeuralNine
Рет қаралды 119 М.