
Python concurrent futures Process Pool Executor | Python Multithreading and MultiProcessing
AI Build Trek · 5,7 N lượt xem · 18 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 processes with ProcessPoolExecutor of python concurrent futures. Even though the syntax is similar in nature, I have created a totally separate video to make you understand the idea and concept behind the CPU intensive tasks. We must understand the concept, meaning and idea behind the CPU intensive tasks so that we can take decisions about whether to create a thread or a process in python programming language.
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 with ProcessPoolExecutor
0:44 : IO and CPU intensive tasks in Python
1:27 : What is a CPU Intensive task or CPU intensive Job
2:21 : Running CPU Intensive tasks in Threads
3:41 : ProcessPoolExecutor