天天看點

《C++多線程程式設計實戰》導讀

c++多線程程式設計實戰

多線程程式設計正逐漸成為it行業和開發人員關注的焦點。開發商希望開發出使用者友好、界面豐富,而且能并發執行的應用程式。強大的c++語言和本地win32 api特性為多線程程式設計提供了良好開端。有了強大的c++,可以輕松地建立不同類型的應用程式,執行并行,而且還能優化現有的工作。

本書是一本實踐為主、通俗易懂的windows多線程程式設計指導。你将學到如何從多線程方案中受益,增強你的開發能力,建構更好的應用程式。本書不僅講解了建立并行代碼時遇到的問題,而且還幫助讀者詳細了解同步技術。此外,本書還涵蓋了windows程序模式、排程技術和程序間通信方面的内容。

本書從基礎開始,介紹了最強大的內建開發環境:微軟的visual studio。讀者将學會使用windows核心的本地特性和.net架構的特性。除此之外,本書還詳細講解了如何解決某些常見的并發問題,讓讀者學會如何在多線程環境中正确地思考。

通過學習本書,讀者将學會如何使用互斥量、信号量、臨界區、螢幕、事件和管道。本書介紹了c++應用程式中用到的大部分高效同步方式。本書用大量的程式示例,以最好的方式教會讀者用c++開發并發應用程式。

本書使用c++本地調用,示範如何利用機器硬體來優化性能。本書最終的目标是傳授各種多線程概念,讓讀者能快速高效地進行并行計算和并發程式設計.

<a href="https://yq.aliyun.com/articles/92358">1.1 介紹</a>

<a href="https://yq.aliyun.com/articles/92367">1.2 建立c++項目</a>

<a href="https://yq.aliyun.com/articles/92378">1.3 程式結構、執行流和運作時對象</a>

<a href="https://yq.aliyun.com/articles/92379">1.4 結構化程式設計方法</a>

<a href="https://yq.aliyun.com/articles/92383">1.5 了解面向對象程式設計方法</a>

<a href="https://yq.aliyun.com/articles/92393">1.6 解釋繼承、重載和覆寫</a>

<a href="https://yq.aliyun.com/articles/92398">1.7 了解多态</a>

<a href="https://yq.aliyun.com/articles/92410">1.8 事件處理器和消息傳遞接口</a>

<a href="https://yq.aliyun.com/articles/92420/">1.9 連結清單、隊列和棧示例</a>

<a href="https://yq.aliyun.com/articles/92426">2.1 簡介</a>

<a href="https://yq.aliyun.com/articles/92431">2.2 程序和線程</a>

<a href="https://yq.aliyun.com/articles/92444">2.3 解釋程序模型</a>

<a href="https://yq.aliyun.com/articles/92449">2.4 程序的實作</a>

<a href="https://yq.aliyun.com/articles/92458">2.5 程序間通信(ipc)</a>

<a href="https://yq.aliyun.com/articles/92470">2.6 解決典型的ipc問題</a>

<a href="https://yq.aliyun.com/articles/92480">2.7 線程模型的實作</a>

<a href="https://yq.aliyun.com/articles/92484">2.8 線程的用法</a>

<a href="https://yq.aliyun.com/articles/92488">2.9 在使用者空間實作線程</a>

<a href="https://yq.aliyun.com/articles/92489">2.10 在核心實作線程</a>