Mastering C++ Multithreading

Maya Posch

  • 出版商: Packt Publishing
  • 出版日期: 2017-07-28
  • 定價: $1,700
  • 售價: 9.0$1,530
  • 語言: 英文
  • 頁數: 244
  • 裝訂: Paperback
  • ISBN: 1787121704
  • ISBN-13: 9781787121706
  • 相關分類: C++ 程式語言
  • 立即出貨 (庫存=1)

相關主題

商品描述

Key Features

  • Delve into the fundamentals of multithreading and concurrency and find out how to implement them
  • Explore atomic operations to optimize code performance
  • Apply concurrency to both distributed computing and GPGPU processing

Book Description

Multithreaded applications execute multiple threads in a single processor environment, allowing developers achieve concurrency. This book will teach you the finer points of multithreading and concurrency concepts and how to apply them efficiently in C++.

Divided into three modules, we start with a brief introduction to the fundamentals of multithreading and concurrency concepts. We then take an in-depth look at how these concepts work at the hardware-level as well as how both operating systems and frameworks use these low-level functions.

In the next module, you will learn about the native multithreading and concurrency support available in C++ since the 2011 revision, synchronization and communication between threads, debugging concurrent C++ applications, and the best programming practices in C++.

In the final module, you will learn about atomic operations before moving on to apply concurrency to distributed and GPGPU-based processing. The comprehensive coverage of essential multithreading concepts means you will be able to efficiently apply multithreading concepts while coding in C++.

What you will learn

  • Deep dive into the details of the how various operating systems currently implement multithreading
  • Choose the best multithreading APIs when designing a new application
  • Explore the use of mutexes, spin-locks, and other synchronization concepts and see how to safely pass data between threads

商品描述(中文翻譯)

主要特點:
- 深入探討多執行緒和並行性的基礎知識,並學習如何實現它們
- 探索原子操作以優化程式碼效能
- 將並行性應用於分散式計算和GPGPU處理

書籍描述:
多執行緒應用程式在單處理器環境中執行多個執行緒,讓開發人員實現並行性。本書將教授您多執行緒和並行性概念的細節,以及如何在C++中高效應用它們。

分為三個模組,我們首先簡要介紹多執行緒和並行性概念的基礎知識。然後深入探討這些概念在硬體層面的工作原理,以及作業系統和框架如何使用這些低階函數。

在下一個模組中,您將學習自2011年修訂以來C++中可用的本機多執行緒和並行性支援,以及執行緒之間的同步和通訊、調試並行C++應用程式以及C++中的最佳程式設計實踐。

在最後一個模組中,您將學習原子操作,然後將並行性應用於分散式和基於GPGPU的處理。對於基本的多執行緒概念的全面涵蓋,意味著您將能夠在使用C++編碼時高效應用多執行緒概念。

您將學到的內容:
- 深入研究各種作業系統目前如何實現多執行緒
- 在設計新應用程式時選擇最佳的多執行緒API
- 探索使用互斥鎖、自旋鎖和其他同步概念,並了解如何安全地在執行緒之間傳遞資料