Python Concurrent Programming: Asynchronous Executions in Python
Python
| Beginner
- 9 videos | 1h 1m 59s
- Includes Assessment
- Earns a Badge
This 9-video course offers a lab-only exploration and introduction to the libraries available in Python to run tasks asynchronously by using both processes and threads. To take this course, you should have prior knowledge of how to spawn and manage processes in Python. First, you will learn how to significantly improve the performance and responsiveness of your application by running them concurrently, then learn how to create a process pool, and how to use multiprocessing to execute tasks in parallel. Next, you will learn to use multithreading to run chunks of a task at one time, and to switch between the chunks regularly. Learners will then examine the concurrent.futures module, which contains objects to run threads and processes in an asynchronous manner, and to monitor their progress while they are still executing. Continue by learning how to use ThreadPoolExecutor, available in the concurrent.futures module. Finally, you examine the asyncio module in Python, which provides lightweight mechanisms for asynchronous executions of tasks.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseCreate a pool of processes to which tasks can be submittedUse the map function of a multithreading.pool instance to submit multiple tasks to a process poolRecognize the use of futures objects to execute tasks asynchronouslyCompare the performance of process pools and thread pools for tasks that are network-bound
-
Compare the performance of process pools and thread pools for tasks which are cpu-boundCreate and execute a coroutine using the asyncio moduleUse the run, create_task, and gather functions in the asyncio modules to execute tasksSummarize process pools and contrast multithreading and multiprocessing in python
IN THIS COURSE
-
2m 36s
-
8m 15sIn this video, learn how to create a pool of processes to submit tasks to. FREE ACCESS
-
6m 50sIn this video, you will use the map function of a multithreading.Pool instance to submit multiple tasks to a process pool. FREE ACCESS
-
9m 20sUpon completion of this video, you will be able to recognize the use of futures objects to execute tasks asynchronously. FREE ACCESS
-
9m 8sIn this video, you will compare the performance of process pools and thread pools for tasks that are network-based. FREE ACCESS
-
5m 15sIn this video, you will compare the performance of process pools and thread pools for tasks which are CPU-bound. FREE ACCESS
-
5m 33sIn this video, you will learn how to create and execute a coroutine using the asyncio module. FREE ACCESS
-
9m 4sIn this video, find out how to use the run, create_task, and gather functions in the asyncio module to execute tasks. FREE ACCESS
-
5m 59sIn this video, you will learn how to summarize process pools and contrast multithreading and multiprocessing in Python. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.