.NET 4.5 Parallel Extensions Cookbook

Bryan Freeman

  • 出版商: Packt Publishing
  • 出版日期: 2013-06-18
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 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調試和分析能力
- 使用異步任務保持響應式用戶界面
- 使用多個並發集合創建管道

這本書包含了使用C#、.NET 4.5和Visual Studio創建基於任務的平行程序所需的一切實用食譜。書中還附有豐富的代碼示例,以創建可擴展的程序。

本書適合有經驗的C#開發人員,幫助他們撰寫利用現代多核處理器優勢的應用程序。對於有經驗的C#開發人員來說,這本書提供了使用.NET平行化API的必要知識。先前編寫多線程應用程序的經驗並不是必需的。