.NET 4.5 Parallel Extensions Cookbook
暫譯: .NET 4.5 平行擴展食譜

Bryan Freeman

  • 出版商: Packt Publishing
  • 出版日期: 2013-06-18
  • 售價: $2,050
  • 貴賓價: 9.5$1,948
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 1849690227
  • ISBN-13: 9781849690225
  • 相關分類: .NET
  • 海外代購書籍(需單獨結帳)

商品描述

If you're an experienced C# developer, this book will give you the know-how to exploit the power of multicore processors. Its 80 recipes provide an in-depth guide to using .NET 4.5 to enhance application performance and scalability.

Overview

  • Create multithreaded applications using .NET Framework 4.5
  • Get introduced to .NET 4.5 parallel extensions and familiarized with .NET parallel loops
  • Use new data structures introduced by .NET Framework 4.5 to simplify complex synchronisation problems
  • Practical recipes on everything you will need to create task-based parallel programs

In Detail

.NET parallel extensions brings the power of parallel and asynchronous programming to a much wider developer audience than ever before. This book will give a developer with no multithreaded development experience the ability to write highly scalable parallel applications that take advantage of modern multicore processors.If you are an experienced .NET developer who wants to put parallel extensions to work in your applications, this book is for you.

".NET 4.5 Parallel Extensions" is a practical, hands-on guide that provides you with a number of clear step-by-step recipes that will introduce parallelism into your applications and take advantage of modern multicore processors. This book is a crash course in using the extensions, with theory and concepts kept to a minimum.

".NET 4.5 Parallel Extensions" offers a wide-ranging presentation of parallel development concepts, and provides a working knowledge of key technologies that are important to developers who want to take advantage of multi-core architectures.

You will learn how to compose a series of producer/consumer tasks into a pipeline that can process data elements received from a real-time event stream. You will also learn how to connect the stages of pipelines together using the concurrent collections. You will learn everything you need to know to transform the multicore power found in modern processors into application performance and scalability.

What you will learn from this book

  • Create a task using Parallel.Invoke, Task.Factory, and Task.Start
  • Work with declarative data parallelism using Parallel Language Integrated Query (PLINQ) and its aggregate functions
  • Perform independent operations on the member data of a collection using parallel loops
  • Coordinate the activities of multiple tasks using new lightweight synchronization primitives
  • Learn to use Visual Studio 2012 debugging and profiling capabilities related to parallel programming
  • Maintain a responsive UI using asynchronous tasks
  • Create a pipeline using multiple concurrent collections

Approach

This book contains practical recipes on everything you will need to create task-based parallel programs using C#, .NET 4.5, and Visual Studio. The book is packed with illustrated code examples to create scalable programs.

Who this book is written for

This book is intended to help experienced C# developers write applications that leverage the power of modern multicore processors. It provides the necessary knowledge for an experienced C# developer to work with .NET parallelism APIs. Previous experience of writing multithreaded applications is not necessary.

商品描述(中文翻譯)

如果您是一位經驗豐富的 C# 開發者,本書將提供您利用多核心處理器的能力。其 80 個食譜提供了使用 .NET 4.5 來增強應用程式性能和可擴展性的深入指南。

概述
- 使用 .NET Framework 4.5 創建多執行緒應用程式
- 介紹 .NET 4.5 的平行擴展,並熟悉 .NET 的平行迴圈
- 使用 .NET Framework 4.5 引入的新資料結構來簡化複雜的同步問題
- 實用的食譜,涵蓋創建基於任務的平行程式所需的一切

詳細內容
.NET 平行擴展將平行和非同步編程的力量帶給比以往更廣泛的開發者群體。本書將使沒有多執行緒開發經驗的開發者能夠編寫高度可擴展的平行應用程式,充分利用現代多核心處理器。如果您是一位希望在應用程式中使用平行擴展的經驗豐富的 .NET 開發者,本書適合您。

《.NET 4.5 平行擴展》是一本實用的手把手指南,提供多個清晰的逐步食譜,將平行性引入您的應用程式並利用現代多核心處理器。本書是使用這些擴展的速成課程,理論和概念保持在最低限度。

《.NET 4.5 平行擴展》提供了平行開發概念的廣泛介紹,並提供了對於希望利用多核心架構的開發者來說重要的關鍵技術的實用知識。

您將學會如何將一系列生產者/消費者任務組合成一個可以處理來自實時事件流的數據元素的管道。您還將學會如何使用並發集合將管道的各個階段連接在一起。您將學會將現代處理器中的多核心能力轉化為應用程式性能和可擴展性所需的一切。

您將從本書中學到的內容
- 使用 Parallel.Invoke、Task.Factory 和 Task.Start 創建任務
- 使用平行語言集成查詢 (PLINQ) 及其聚合函數進行聲明式數據平行處理
- 使用平行迴圈對集合的成員數據執行獨立操作
- 使用新的輕量級同步原語協調多個任務的活動
- 學習使用 Visual Studio 2012 進行與平行編程相關的調試和性能分析
- 使用非同步任務維持響應式 UI
- 使用多個並發集合創建管道

方法
本書包含了使用 C#、.NET 4.5 和 Visual Studio 創建基於任務的平行程式所需的一切實用食譜。本書充滿了插圖代碼示例,以創建可擴展的程式。

本書的讀者對象
本書旨在幫助經驗豐富的 C# 開發者編寫利用現代多核心處理器能力的應用程式。它提供了經驗豐富的 C# 開發者使用 .NET 平行性 API 所需的知識。先前編寫多執行緒應用程式的經驗並不是必需的。