Python Parallel Programming Cookbook (Paperback)

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的執行緒模組進行基於執行緒的並行模型的探索,通過同步執行緒和使用鎖、互斥鎖、信號量、佇列、GIL和執行緒池來實現。

接下來,您將學習基於進程的並行模型,使用訊息傳遞進行進程同步,同時學習MPI Python模組的效能。然後,您將學習使用Python的asyncio模組進行非同步並行程式設計模型,並處理異常。隨後,您將探索Python的分散式計算,學習如何安裝代理、使用Celery Python模組並創建工作程序。

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

風格和方法

本書是一本以Python為基礎的並行程式設計逐步指南,每個章節都附有一個或多個程式範例。這是一本實用導向的書籍,包含了所有必要的並行計算概念。