天天看點

Java 7 并發程式設計指南中文版

申明:本書由并發程式設計網組織翻譯,隻供研究和學習之用,禁止任何人用于商業用途。

當你用計算機工作的時候,你在同時做多樣事情。你可以邊聽音樂邊寫文檔邊讀取郵件。可以這樣做的原因是你的作業系統運作并發任務。并發程式設計是關于基礎與程序的一個提供了多任務或者多程式同時運作還互相溝通來交換資料和互相同步的平台。java是一個并發平台,在java程式中提供了很多執行并發任務的類。每個版本,java提升了促程序式員開發并發程式的功能。這本書包含了在java版本7的并發api中最重要和最有用的技巧,你可以直接在你的應用程式中使用的。

<a href="http://ifeve.com/thread-management-1/">介紹 </a>

<a href="http://ifeve.com/thread-management-2/">線程的建立和運作 </a>

<a href="http://ifeve.com/thread-management-3/">擷取和設定線程資訊 </a>

<a href="http://ifeve.com/thread-management-4/">線程的中斷 </a>

<a href="http://ifeve.com/thread-management-5/">操作線程的中斷機制 </a>

<a href="http://ifeve.com/thread-management-6/">線程的睡眠和恢複 </a>

<a href="http://ifeve.com/thread-management-7/">等待線程的終結 </a>

<a href="http://ifeve.com/thread-management-8/">守護線程的建立和運作 </a>

<a href="http://ifeve.com/thread-management-9/">處理線程的不受控制異常 </a>

<a href="http://ifeve.com/thread-management-10/">使用本地線程變量</a>

<a href="http://ifeve.com/thread-management-11/">線程組</a>

<a href="http://ifeve.com/thread-management-12/">處理線程組内的不受控制異常</a>

<a href="http://ifeve.com/thread-management-13/">用線程工廠建立線程</a>

<a href="http://ifeve.com/basic-thread-synchronization-1/">介紹 </a>

<a href="http://ifeve.com/basic-thread-synchroinzation-2/">同步方法 </a>

<a href="http://ifeve.com/basic-thread-synchronization-3/">在同步的類裡安排獨立屬性</a>

<a href="http://ifeve.com/basic-thread-synchronization-4/">在同步代碼中使用條件</a>

<a href="http://ifeve.com/basic-thread-synchronization-5/">使用lock來同步代碼塊</a>

<a href="http://ifeve.com/basic-thread-synchronization-6/">使用讀/寫鎖來同步資料通路</a>

<a href="http://ifeve.com/basic-thread-synchronization-7/">修改lock的公平性</a>

<a href="http://ifeve.com/basic-thread-synchronization-8/">在lock中使用多條件</a>

<a href="http://ifeve.com/thread-synchronization-utilities-1/">介紹</a>

<a href="http://ifeve.com/thread-synchronization-utilities-2/">控制并發通路一個資源</a>

<a href="http://ifeve.com/thread-synchronization-utilities-3/">控制并發通路多個資源</a>

<a href="http://ifeve.com/thread-synchronization-utilities-4/">等待多個并發事件完成</a>

<a href="http://ifeve.com/thread-synchronization-utilities-5/">在一個相同點同步任務</a>

<a href="http://ifeve.com/thread-synchronization-utilities-6-2/">運作并發階段性任務</a>

<a href="http://ifeve.com/thread-synchronization-utilities-7/">控制并發階段性任務的改變</a>

<a href="http://ifeve.com/thread-synchronization-utilities-8/">在并發任務間交換資料</a>

<a href="http://ifeve.com/thread-executors-1/">介紹 </a>

<a href="http://ifeve.com/thread-executors-2/">建立一個線程執行者 </a>

<a href="http://ifeve.com/thread-executors-3/">建立一個大小固定的線程執行者 </a>

<a href="http://ifeve.com/thread-executors-4/">執行者執行傳回結果的任務 </a>

<a href="http://ifeve.com/thread-executors-5/">運作多個任務并處理第一個結果 </a>

<a href="http://ifeve.com/thread-executors-6/">運作多個任務并處理所有的結果</a>

<a href="http://ifeve.com/thread-executors-7/">在延遲後執行者運作任務</a>

<a href="http://ifeve.com/thread-executors-8/">執行者定期的執行任務</a>

<a href="http://ifeve.com/thread-executors-9/">執行者取消任務 </a>

<a href="http://ifeve.com/thread-executors-10/">執行者控制一個結束任務 </a>

<a href="http://ifeve.com/thread-executors-11/">執行者分離運作任務和處理結果 </a>

<a href="http://ifeve.com/thread-executors-12/">執行者控制被拒絕的任務</a>

<a href="http://ifeve.com/fork-join-1/">介紹 </a>

<a href="http://ifeve.com/fork-join-2/">建立 fork/join 池 </a>

<a href="http://ifeve.com/fork-join-3/">加入任務的結果 </a>

<a href="http://ifeve.com/fork-join-4/">異步運作任務 </a>

<a href="http://ifeve.com/fork-join-5/">任務中抛出異常</a>

<a href="http://ifeve.com/fork-join-6/">取消任務</a>

<a href="http://ifeve.com/concurrent-collections-1/">介紹 </a>

<a href="http://ifeve.com/concurrent-collections-2/">使用非阻塞線程安全清單 </a>

<a href="http://ifeve.com/concurrent-collections-3/">使用阻塞線程安全清單 </a>

<a href="http://ifeve.com/concurrent-collections-4/">用優先級對使用阻塞線程安全清單排序</a>

<a href="http://ifeve.com/concurrent-collections-5/">使用線程安全與帶有延遲元素的清單 </a>

<a href="http://ifeve.com/concurrent-collections-6/">使用線程安全的導航地圖</a>

<a href="http://ifeve.com/concurrent-collections-7/">生成并行随機數 </a>

<a href="http://ifeve.com/concurrent-collections-8/">使用原子變量</a>

<a href="http://ifeve.com/concurrent-collections-9/">使用原子陣列 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-1/">介紹 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-2/">定制threadpoolexecutor 類</a>

<a href="http://ifeve.com/customizing-concurrency-classes-3/">實作一個優先級制的執行者類 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-4/">實作threadfactory接口來生成自定義線程 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-5/">在執行者對象中使用我們的 threadfactory </a>

<a href="http://ifeve.com/customizing-concurrency-classes-6/">在計劃好的線程池中定制運作任務 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-7/">實作threadfactory接口來生成自定義線程給fork/join架構 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-8/">在fork/join架構中定制運作任務 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-9/">實作一個自定義鎖類 </a>

<a href="http://ifeve.com/customizing-concurrency-classes-10/">實作一個基于優先級傳輸queue </a>

<a href="http://ifeve.com/customizing-concurrency-classes-11/">實作你自己的原子對象</a>

<a href="http://ifeve.com/testing-concurrent-applications-1/">介紹</a>

<a href="http://ifeve.com/testing-concurrent-applications-2/">監控鎖接口</a>

<a href="http://ifeve.com/testing-concurrent-applications-3/">監控phaser類</a>

監控執行者架構

<a href="http://ifeve.com/testing-concurrent-applications-5-2/">監控fork/join池</a>

<a href="http://ifeve.com/testing-concurrent-applications-6-2/">編寫有效的日志</a>

<a href="http://ifeve.com/testing-concurrent-applications-7/">findbugs分析并發代碼</a>

<a href="http://ifeve.com/testing-concurrent-applications-8/">配置eclipse來調試并發代碼</a>

<a href="http://ifeve.com/testing-concurrent-applications-9/">配置netbeans來調試并發代碼</a>

<a href="http://ifeve.com/testing-concurrent-applications-10/">multithreadedtc測試并發代碼</a>

繼續閱讀