Python Concurrent Programming: Asynchronous Executions in Python

Python 3.0+    |    Beginner
  • 9 Videos | 1h 5m 29s
  • Includes Assessment
  • Earns a Badge
Likes 24 Likes 24
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 course
    create a pool of processes to which tasks can be submitted
    use the map function of a multithreading.Pool instance to submit multiple tasks to a process pool
    recognize the use of futures objects to execute tasks asynchronously
    compare 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-bound
    create and execute a coroutine using the asyncio module
    use the run, create_task, and gather functions in the asyncio modules to execute tasks
    summarize process pools and contrast multithreading and multiprocessing in Python

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 36s
    UP NEXT
  • Playable
    2. 
    Process Pools in Python - Part 1
    8m 15s
  • Locked
    3. 
    Process Pools in Python - Part 2
    6m 50s
  • Locked
    4. 
    Introducing the concurrent.futures module
    9m 20s
  • Locked
    5. 
    Threads vs. Processes for Network-bound Tasks
    9m 8s
  • Locked
    6. 
    Threads vs. Processes for CPU-bound Tasks
    5m 15s
  • Locked
    7. 
    Introducing the asyncio Module
    5m 33s
  • Locked
    8. 
    Concurrent Execution Using the asyncio Module
    9m 4s
  • Locked
    9. 
    Exercise: Asynchronous Executions in Python
    5m 59s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE