Multithreaded Programming With PThreads (Paperback)
暫譯: 使用 PThreads 的多執行緒程式設計 (平裝本)

Bil Lewis, Daniel J. Berg, Sun Microsystems Press

  • 出版商: Prentice Hall
  • 出版日期: 1997-12-19
  • 售價: $1,440
  • 貴賓價: 9.5$1,368
  • 語言: 英文
  • 頁數: 432
  • 裝訂: Paperback
  • ISBN: 0136807291
  • ISBN-13: 9780136807292
  • 相關分類: Operating-system
  • 立即出貨 (庫存 < 3)

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

商品描述

Summary

68072-8

Based on the best-selling Threads Primer, Multithreaded Programming with Pthreads gives you a solid understanding of Posix threads: what they are, how they work, when to use them, and how to optimize them.

It retains the clarity and humor of the Primer, but includes expanded comparisons to Win32 and OS/2 implementations. Code examples tested on all of the major UNIX platforms are featured along with detailed explanations of how and why they use threads.

In addition to scheduling, synchronization, signal handling, etc., special emphasis is placed on:

  • Cancellation: What does it mean to do bounded-time cancellation? What are the numerous details the programmer must deal with, and how do you avoid using cancellation at all?
  • Error expeditions: What do they all mean and what should you do about them?
  • Performance: How fast can a program run, and what are the limiting factors? Theoretical issues are considered and a case study for NFS is presented.
  • Hardware: A number of machine designs are examined (Sun, SGI, and DEC), focusing on issues of performance, synchronization instructions, bus design, and invalidation techniques.
  • Languages: The use of threads in other languages (Lisp, Eiffel, Smalltalk, etc.) is examined, with special emphasis on C++ and Java.
  • References: Pointers to the newsgroup, FAQs, web pages, code examples, other books, freeware tools, and commercial products are included.
  • More than anything else this is a practical book-it tells you what can and cannot be done with threads and why. In short, everything you need to know to build faster, smarter, multithreaded applications.

商品描述(中文翻譯)

摘要

68072-8

基於暢銷書《Threads Primer》,《Multithreaded Programming with Pthreads》讓您對 Posix threads 有深入的了解:它們是什麼、如何運作、何時使用以及如何優化它們。

本書保留了 Primer 的清晰度和幽默感,但增加了與 Win32 和 OS/2 實作的比較。書中提供了在所有主要 UNIX 平台上測試過的程式碼範例,並詳細解釋了它們如何以及為什麼使用 threads。

除了排程、同步、信號處理等主題外,特別強調以下幾點:

- 取消:進行有界時間取消意味著什麼?程式設計師必須處理的眾多細節是什麼,如何完全避免使用取消?
- 錯誤探險:它們都意味著什麼,您應該如何處理?
- 性能:程式可以運行多快,限制因素是什麼?考慮理論問題並提供 NFS 的案例研究。
- 硬體:檢視多種機器設計(如 Sun、SGI 和 DEC),重點關注性能、同步指令、匯流排設計和失效技術等問題。
- 語言:檢視其他語言(如 Lisp、Eiffel、Smalltalk 等)中使用 threads 的情況,特別強調 C++ 和 Java。
- 參考資料:包括指向新聞組、常見問題解答、網頁、程式碼範例、其他書籍、免費工具和商業產品的指引。

這本書最重要的是實用性——它告訴您使用 threads 可以和不可以做什麼,以及為什麼。簡而言之,您需要知道的一切,以構建更快、更智能的多執行緒應用程式。