Python Parallel Programming Cookbook (Paperback)
暫譯: Python 平行程式設計食譜 (平裝本)

Giancarlo Zaccone

買這商品的人也買了...

相關主題

商品描述

Master efficient parallel programming to build powerful applications using Python

About This Book

  • Design and implement efficient parallel software
  • Master new programming techniques to address and solve complex programming problems
  • Explore the world of parallel programming with this book, which is a go-to resource for different kinds of parallel computing tasks in Python, using examples and topics covered in great depth

Who This Book Is For

Python Parallel Programming Cookbook is intended for software developers who are well versed with Python and want to use parallel programming techniques to write powerful and efficient code. This book will help you master the basics and the advanced of parallel computing.

What You Will Learn

  • Synchronize multiple threads and processes to manage parallel tasks
  • Implement message passing communication between processes to build parallel applications
  • Program your own GPU cards to address complex problems
  • Manage computing entities to execute distributed computational tasks
  • Write efficient programs by adopting the event-driven programming model
  • Explore the cloud technology with DJango and Google App Engine
  • Apply parallel programming techniques that can lead to performance improvements

In Detail

This book will teach you parallel programming techniques using examples in Python and will help you explore the many ways in which you can write code that allows more than one process to happen at once. Starting with introducing you to the world of parallel computing, it moves 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 along with learning about the performance of MPI Python Modules. You will then go on to learn the asynchronous parallel programming model using the Python asyncio module along with handling exceptions. Moving on, 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 learnGPU programming withPython using the PyCUDA module along with evaluating performance limitations.

Style and approach

A step-by-step guide to parallel programming using Python, with recipes accompanied by one or more programming examples. It is a practically oriented book and has all the necessary underlying parallel computing concepts.

商品描述(中文翻譯)

**掌握高效的並行程式設計,使用 Python 建立強大的應用程式**

## 本書介紹

- 設計和實現高效的並行軟體
- 掌握新的程式設計技術,以解決和處理複雜的程式問題
- 本書深入探討並行程式設計的世界,是處理各種 Python 並行計算任務的首選資源,並使用範例和主題進行詳細說明

## 本書適合誰

《Python 並行程式設計食譜》適合熟悉 Python 的軟體開發人員,想要使用並行程式設計技術來撰寫強大且高效的程式碼。本書將幫助您掌握並行計算的基礎和進階知識。

## 您將學到什麼

- 同步多個執行緒和進程以管理並行任務
- 實現進程之間的訊息傳遞通信,以建立並行應用程式
- 編寫自己的 GPU 卡以解決複雜問題
- 管理計算實體以執行分散式計算任務
- 通過採用事件驅動的程式設計模型來撰寫高效的程式
- 使用 DJango 和 Google App Engine 探索雲技術
- 應用可以提高性能的並行程式設計技術

## 詳細內容

本書將教您使用 Python 的範例來學習並行程式設計技術,並幫助您探索多種撰寫程式碼的方法,使多個進程能夠同時運行。從介紹並行計算的世界開始,接著涵蓋 Python 的基本概念。然後,將探索基於執行緒的並行模型,使用 Python 的 threading 模組來同步執行緒,並使用鎖、互斥鎖、信號量佇列、全域解釋器鎖(GIL)和執行緒池。

接下來,您將學習基於進程的並行性,使用訊息傳遞來同步進程,並了解 MPI Python 模組的性能。然後,您將學習使用 Python 的 asyncio 模組進行非同步並行程式設計,並處理例外情況。接著,您將發現使用 Python 的分散式計算,學習如何安裝代理、使用 Celery Python 模組以及創建工作者。

您將了解 Pycsp、Scoop 框架和 Python 中的磁碟模組。此外,您將學習使用 PyCUDA 模組進行 GPU 程式設計,並評估性能限制。

## 風格與方法

本書是一本逐步指導的並行程式設計指南,使用 Python,並附有一個或多個程式範例的食譜。這是一本以實踐為導向的書籍,涵蓋所有必要的並行計算基本概念。