Multithreading in C# 5.0 Cookbook (Paperback)
暫譯: C# 5.0 多執行緒食譜 (平裝本)

Eugene Agafonov

  • 出版商: Packt Publishing
  • 出版日期: 2013-05-24
  • 定價: $1,650
  • 售價: 6.0$990
  • 語言: 英文
  • 頁數: 268
  • 裝訂: Paperback
  • ISBN: 1849697647
  • ISBN-13: 9781849697644
  • 相關分類: C#
  • 立即出貨(限量) (庫存=1)

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

商品描述

Over 70 recipes to help you learn asynchronous and parallel programming with C# 5.0 quickly and efficiently

Overview

  • Delve deep into the .NET threading infrastructure and use Task Parallel Library for asynchronous programming
  • Scale out your server applications effectively
  • Master C# 5.0 asynchronous operations language support

In Detail

In an age when computer processors are being developed to contain more and more cores, multithreading is a key factor for creating scalable, effective, and responsive applications. If you fail to do it correctly, it can lead to puzzling problems that take a huge amount of time to resolve. Therefore, having a solid understanding of multithreading is a must for the modern application developer.

Multithreading in C# 5.0 Cookbook is an easy-to-understand guide to the most puzzling programming problems. This book will guide you through practical examples dedicated to various aspects of multithreading in C# on Windows and will give you a good basis of practical knowledge which you can then use to program your own scalable and reliable multithreaded applications.

This book guides you through asynchronous and parallel programming from basic examples to practical, real-world solutions to complex problems. You will start from the very beginning, learning what a thread is, and then proceed to learn new concepts based on the information you get from the previous examples.

After describing the basics of threading, you will be able to grasp more advanced concepts like Task Parallel Library and C# asynchronous functions. Then, we move towards parallel programming, starting with basic data structures and gradually progressing to the more advanced patterns. The book concludes with a discussion of the specifics of Windows 8 application programming, giving you a complete understanding of how Windows 8 applications are different and how to program asynchronous applications for Windows 8.

What you will learn from this book

  • Work with raw threads, synchronize threads, and coordinate their work
  • Develop your own asynchronous API with Task Parallel Library
  • Use C# 5.0 asynchronous language features
  • Scale up your server application with I/O threads
  • Parallelize your LINQ queries with PLINQ
  • Use common concurrent collections
  • Apply different parallel programming patterns
  • Work with Windows 8 asynchronous APIs
  • Use Reactive Extensions to run asynchronous operations and manage their options

Approach

This book is an easy-to-follow guide full of hands-on examples of real-world multithreading tasks. Each topic is explained and placed in context, and for the more inquisitive readers, there are also more in-depth details of the concepts used.

Who this book is written for

If you are a developer or new to multithreaded programming and you are looking for a quick and easy way to get started, then this book is for you. It is assumed that you have some experience in C# and .NET already, and you should also be familiar with computer science and basic algorithms and data structure.

商品描述(中文翻譯)

超過70個食譜,幫助您快速有效地學習C# 5.0的非同步和平行程式設計

概述


  • 深入了解.NET執行緒基礎架構,並使用任務平行庫進行非同步程式設計

  • 有效擴展您的伺服器應用程式

  • 掌握C# 5.0的非同步操作語言支援

詳細內容

在計算機處理器不斷發展以包含越來越多核心的時代,多執行緒是創建可擴展、有效且響應迅速的應用程式的關鍵因素。如果您未能正確處理,可能會導致令人困惑的問題,並需要大量時間來解決。因此,對於現代應用程式開發者來說,對多執行緒有扎實的理解是必須的。

C# 5.0食譜中的多執行緒是一本易於理解的指南,針對最令人困惑的程式設計問題。本書將通過實用範例引導您了解C#在Windows上多執行緒的各個方面,並為您提供良好的實用知識基礎,讓您能夠編寫可擴展且可靠的多執行緒應用程式。

本書將從基本範例開始,逐步引導您進入非同步和平行程式設計,並提供實際的現實解決方案來解決複雜問題。您將從最基本的概念開始,學習什麼是執行緒,然後根據前面的範例學習新的概念。

在描述執行緒的基本知識後,您將能夠掌握更高級的概念,如任務平行庫和C#非同步函數。接著,我們將進入平行程式設計,從基本資料結構開始,逐步進展到更高級的模式。本書最後將討論Windows 8應用程式程式設計的特點,讓您全面了解Windows 8應用程式的不同之處,以及如何為Windows 8編寫非同步應用程式。

您將從本書學到什麼


  • 處理原始執行緒、同步執行緒並協調它們的工作

  • 使用任務平行庫開發自己的非同步API

  • 使用C# 5.0的非同步語言特性

  • 使用I/O執行緒擴展您的伺服器應用程式

  • 使用PLINQ平行化您的LINQ查詢

  • 使用常見的並發集合

  • 應用不同的平行程式設計模式

  • 使用Windows 8非同步API

  • 使用Reactive Extensions執行非同步操作並管理其選項

方法

本書是一個易於跟隨的指南,充滿了現實世界多執行緒任務的實作範例。每個主題都被解釋並放在上下文中,對於更好奇的讀者,還有更深入的概念細節。

本書的讀者對象

如果您是開發者或剛接觸多執行緒程式設計,並且正在尋找快速簡單的入門方式,那麼這本書適合您。假設您已經對C#和.NET有一定的經驗,並且應該對計算機科學以及基本的演算法和資料結構有所了解。