Learning Concurrency in Python

Elliot Forbes

  • 出版商: Packt Publishing
  • 出版日期: 2017-08-16
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 360
  • 裝訂: Paperback
  • ISBN: 1787285375
  • ISBN-13: 9781787285378
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

Key Features

  • Build highly efficient, robust, and concurrent applications
  • Work through practical examples that will help you address the challenges of writing concurrent code
  • Improve the overall speed of execution in multiprocessor and multicore systems and keep them highly available

Book Description

Python is a very high level, general purpose language, and also one of the most widely used languages. It offers diverse concurrency approaches, including the language itself and the third-party libraries.

This book introduces the popular and useful libraries in-depth, briefly introduces specialized solutions, and shows you how to choose one. We cover the concurrency approaches and their techniques in Python, showing you why to use, how to use, when to use, and give you background knowledge.

The book will guide you down the path to mastering Python concurrency, giving you all the necessary hardware and theoretical knowledge. Then we explore threading and multi-processing in Python. Next, you will learn about higher-level tools, event-driven programming, reactive programming, and more libraries. You will understand how to handle exceptions, benchmark, and debug code in a concurrent system.

By the end of the book, you will have learned the techniques to write efficient Python code with concurrency.

What you will learn

  • Explore the concept of threading and multiprocessing in Python
  • Understand concurrency with threads
  • Manage exceptions in child threads
  • Handle the hardest part in a concurrent system - shared resources
  • Build concurrent systems with Communicating Sequential Processes (CSP)
  • Maintain all concurrent systems and master them
  • Apply reactive programming to build concurrent systems
  • Use GPU to solve specific problems

商品描述(中文翻譯)

主要特點


  • 構建高效、健壯和並發應用程序

  • 通過實際示例解決並發代碼編寫的挑戰

  • 提高多處理器和多核系統的執行速度,保持高可用性

書籍描述

Python是一種非常高級、通用的語言,也是最廣泛使用的語言之一。它提供了多種並發方法,包括語言本身和第三方庫。

本書深入介紹了流行且有用的庫,簡要介紹了專門的解決方案,並向您展示如何選擇。我們涵蓋了Python中的並發方法及其技術,向您展示為什麼使用、如何使用、何時使用以及提供背景知識。

本書將引導您掌握Python並發的技巧,為您提供所有必要的硬件和理論知識。然後,我們將探索Python中的線程和多進程。接下來,您將學習更高級的工具、事件驅動編程、反應式編程和更多庫。您將了解如何處理異常、進行基準測試和調試並發系統中的代碼。

通過閱讀本書,您將學會使用並發編寫高效的Python代碼的技巧。

您將學到什麼


  • 探索Python中的線程和多進程的概念

  • 了解線程的並發

  • 在子線程中處理異常

  • 處理並發系統中最困難的部分-共享資源

  • 使用通信順序進程(CSP)構建並發系統

  • 維護所有並發系統並掌握它們

  • 應用反應式編程構建並發系統

  • 使用GPU解決特定問題