Book Image

Learning Concurrency in Python [Video]

By : Elliot Forbes
Book Image

Learning Concurrency in Python [Video]

By: Elliot Forbes

Overview of this book

<p>Python is a very high-level, general-purpose language that is utilized heavily in fields such as data science and research, as well as being one of the top choices for general-purpose programming for programmers around the world. It features a wide number of powerful, high- and low-level libraries and frameworks that complement its delightful syntax and enable Python programmers to be creative.</p> <p>This course introduces some of the most popular libraries and frameworks and goes in-depth into how you can leverage these libraries for your own high-concurrent, highly-performant Python programs. We'll cover the fundamental concepts of concurrency needed to be able to write your own concurrent and parallel software systems in Python.</p> <p>The course will guide you down the path to mastering Python concurrency, giving you all the necessary hardware and theoretical knowledge. We'll cover concepts such as debugging and exception handling as well as some of the most popular libraries and frameworks that allow you to create event-driven and reactive systems. By the end of the video course, you'll have learned techniques to write incredibly efficient concurrent systems that follow best practices.</p> <p>All the code and supporting files for this course are available on Github at <a style="color: #fa8d11;" title="https://github.com/PacktPublishing/Learning-Concurrency-in-Python-Video-" href="https://github.com/PacktPublishing/Learning-Concurrency-in-Python-Video-" target="_blank">https://github.com/PacktPublishing/Learning-Concurrency-in-Python-Video-</a>.</p> <h1>Style and Approach</h1> <p>This easy-to-follow guide teaches you new practices and techniques to optimize your code, and then moves into more advanced ways to effectively write efficient Python code. Small and simple practical examples will help you test concepts yourself, and you will be able to easily adapt them for any application.</p>
Table of Contents (9 chapters)
Chapter 7
Executors and Pools
Content Locked
Section 4
ProcessPoolExecutor
In this video, we will look at few working examples on Process Pool Executor, context manager and for improving speed computationally bound problems. - Use os module to find the current PID - Employ a context manager to make our code nicer and more readable - Utilize the timeit module