
MultiThreading in Python | Python Concurrent futures | ThreadPoolExecutor
AI Build Trek · 20,9 N lượt xem · 12 thg 1, 2022
Mô tả
The complete playlist for multithreading and multiprocessing in python - • Python Multi Threading and Multi Processing
Welcome to the video series on multithreading and multiprocessing in python programming language. In this video I'm talking about Python concurrent futures, which is an alternative way of doing multithreading and multi processing in python programming language.
The idea behind futures is not new and pretty much all programming languages have it in one way or others, but most of the time this topic is a bit confusing for the people. I've tried to make it simpler so that its easy for everyone to understand.
In this video, I've talked about creating multiple threads using ThreadPoolExecutor, I've talked about 3 way by which we can use the ThreadPoolExecutor to create multiple async tasks and take back the result from the async functions. I've also talked about using maps to put multiple async tasks
Hope this video will help you to understand concurrent future and you'll like this video.
Thanks for watching. Here are the contents of this video.
Timecodes
0:00 : Concurrent.futures in python
0:54 : Meaning of Futures in Programming Languages
2:39 : Using concurrent futures in python
4:33 : Creating Threads for async tasks
5:51 : Using ThreadPoolExecutor of concurrent.futures
8:19 : Using ThreadPoolExecutor Map in python
10:10 : ThreadPoolExecutor return values from asyn functions
#python #multithreading #futures #concurrentfutures #machinelearning #