Book Image

Python Parallel Programming Solutions [Video]

By : Giancarlo Zaccone
Book Image

Python Parallel Programming Solutions [Video]

By: Giancarlo Zaccone

Overview of this book

<p>This course will teach you parallel programming techniques using examples in Python and help you explore the many ways in which you can write code that allows more than one process to happen at once.</p> <p>Starting with introducing you to the world of parallel computing, we move on to cover the fundamentals in Python. This is followed by exploring the thread-based parallelism model using the Python threading module by synchronizing threads and using locks, mutex, semaphores queues, GIL, and the thread pool. Next you will be taught about process-based parallelism, where you will synchronize processes using message passing and will learn about the performance of MPI Python Modules.</p> <p>Moving on, you’ll get to grips with the asynchronous parallel programming model using the Python asyncio module, and will see how to handle exceptions. You will discover distributed computing with Python, and learn how to install a broker, use Celery Python Module, and create a worker. You will understand anche Pycsp, the Scoop framework, and disk modules in Python. Further on, you will get hands-on in GPU programming with Python using the PyCUDA module and will evaluate performance limitations.</p> <h1>Style and Approach</h1> <p>A step-by-step guide to parallel programming using Python, with videos that feature one or more programming examples. It is a practically-oriented course and has all the necessary underlying parallel computing concepts.</p>
Table of Contents (6 chapters)
Chapter 2
Thread-Based Parallelism
Content Locked
Section 8
Thread Synchronization with an Event
Events are objects that are used for communication between threads. In this video, we will carry out thread synchronization with an event. - Understand the thread synchronization through the event object