Book Image

Parallel Programming with Python

Book Image

Parallel Programming with Python

Overview of this book

Table of Contents (16 chapters)
Parallel Programming with Python
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Discovering PP


The previous section introduced a low-level mechanism to establish communication among the processes using system calls directly. This was necessary to contextualize the communication between processes in the Linux and Unix environments. Now, we will use a Python module, PP, to establish IPC communication not only among local processes, but also physically distributed throughout a computer network.

The available PP module documentation is not extensive. We can find the documents and FAQs at http://www.parallelpython.com/component/option,com_smf/. The API provides a wide notion of how this tool should be used; it is simple and straightforward.

The most important advantage of using PP is the abstraction that this module provides. Some important features of PP are as follows:

  • Automatic detection of number of processors to improve load balance

  • Many processors allocated can be changed at runtime

  • Load balance at runtime

  • Auto-discovery resources throughout the network

The PP module implements...