In this lesson, we will cover:

  • What is Parallel Call?
  • Parallel Call basic Usage.
  • How does Parallel Call achieve parallel execution?
  • Using Parallel Call with Genie and Dq.

The scripts and code for this lesson can be found within the pyATS repo under the directory: 004_libraries/pcall/.

What is Parallel Call?

Parallel Call is a pyATS library that provides you with the ability to run multiple functions in parallel.

Under the hood, Parallel Call uses Python’s multiprocessing to provide parallelism.

The Python multiprocessing module creates child processes for which to run each thread. The key advantages to using multiple processing are:

  • Each process has a separate memory space. Therefore each thread that is executed has its own memory space, allowing non-thread-safe applications (such as pyATS) to be run without issues.
  • Each of the CPU Cores is utilised, as each of the spawned processes is placed onto different cores.
Members Only Content
Join today and get access to:
  • Full deep-dive course library (inc. Batfish, pyATS, Netmiko)
  • Code repositories inc. full course code, scripts and examples
  • 24x7 Multi-vendor labs (Arista, Cisco, Juniper)
  • Private online community
  • Monthly online meetups

100% Satisfaction Guaranteed!
Cancel your membership at any time.


Join Today
Close You've successfully subscribed to Packet Coders.
Close Success! Your account is fully activated, you now have access to all content.
Close Welcome back! You've successfully signed in.
Close Nearly there! To activate your account, please click the link in the email we just sent you.