Mastering C# Concurrency
暫譯: 精通 C# 並發編程
Eugene Agafonov, Andrew Koryavchenko
- 出版商: Packt Publishing
- 出版日期: 2015-10-30
- 售價: $2,290
- 貴賓價: 9.5 折 $2,176
- 語言: 英文
- 頁數: 284
- 裝訂: Paperback
- ISBN: 178528665X
- ISBN-13: 9781785286650
-
相關分類:
C#
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$250$225 -
$2,120$2,014 -
$520$364 -
$700Professional Scrum Development with Microsoft Visual Studio 2012 (Paperback)
-
$580$522 -
$450$351 -
$1,620$1,539 -
$403系統分析與設計:敏捷迭代方法(原書第6版)
-
$3,370$3,202 -
$958深度學習
-
$650$507 -
$2,220$2,109 -
$454JSON 實戰
-
$269大數據技術
-
$398$299 -
$460$391 -
$420$332 -
$599$473 -
$800$680 -
$400$316 -
$780$616 -
$2,185Learning Blazor: Build Single-Page Apps with Webassembly and C# (Paperback)
-
$534$507 -
$720$562 -
$880$695
商品描述
Create robust and scalable applications along with responsive UI using concurrency and the multi-threading infrastructure in .NET and C#
About This Book
- Learn to combine your asynchronous operations with Task Parallel Library
- Master C#'s asynchronous infrastructure and use asynchronous APIs effectively to achieve optimal responsiveness of the application
- An easy-to-follow, example-based guide that helps you to build scalable applications using concurrency in C#
Who This Book Is For
If you are a C# developer who wants to develop modern applications in C# and wants to overcome problems by using asynchronous APIs and standard patterns, then this book is ideal for you. Reasonable development knowledge, an understanding of core elements and applications related to the .Net platform, and also the fundamentals of concurrency is assumed.
What You Will Learn
- Apply general multithreading concepts to your application's design
- Leverage lock-free concurrency and learn about its pros and cons to achieve efficient synchronization between user threads
- Combine your asynchronous operations with Task Parallel Library
- Make your code easier with C#'s asynchrony support
- Use common concurrent collections and programming patterns
- Write scalable and robust server-side asynchronous code
- Create fast and responsible client applications
- Avoid common problems and troubleshoot your multi-threaded and asynchronous applications
In Detail
Starting with the traditional approach to concurrency, you will learn how to write multithreaded concurrent programs and compose ways that won't require locking. You will explore the concepts of parallelism granularity, and fine-grained and coarse-grained parallel tasks by choosing a concurrent program structure and parallelizing the workload optimally. You will also learn how to use task parallel library, cancellations, timeouts, and how to handle errors. You will know how to choose the appropriate data structure for a specific parallel algorithm to achieve scalability and performance. Further, you'll learn about server scalability, asynchronous I/O, and thread pools, and write responsive traditional Windows and Windows Store applications.
By the end of the book, you will be able to diagnose and resolve typical problems that could happen in multithreaded applications.
Style and approach
An easy-to-follow, example-based guide that will walk you through the core principles of concurrency and multithreading using C#.
商品描述(中文翻譯)
使用 .NET 和 C# 的併發及多執行緒基礎架構創建穩健且可擴展的應用程式以及響應式 UI
本書介紹
- 學習如何將非同步操作與任務平行庫 (Task Parallel Library) 結合
- 掌握 C# 的非同步基礎架構,並有效使用非同步 API 以實現應用程式的最佳響應性
- 一本易於跟隨的範例導向指南,幫助您使用 C# 的併發來構建可擴展的應用程式
本書適合誰閱讀
如果您是希望在 C# 中開發現代應用程式並希望通過使用非同步 API 和標準模式來克服問題的 C# 開發人員,那麼這本書非常適合您。本書假設您具備合理的開發知識,了解與 .NET 平台相關的核心元素和應用程式,以及併發的基本概念。
您將學到什麼
- 將一般的多執行緒概念應用於您的應用程式設計
- 利用無鎖併發,了解其優缺點,以實現用戶執行緒之間的高效同步
- 將您的非同步操作與任務平行庫結合
- 利用 C# 的非同步支持使您的代碼更簡潔
- 使用常見的併發集合和編程模式
- 編寫可擴展且穩健的伺服器端非同步代碼
- 創建快速且響應迅速的客戶端應用程式
- 避免常見問題並排除多執行緒和非同步應用程式的故障
詳細內容
從傳統的併發方法開始,您將學習如何編寫多執行緒的併發程式,並組合不需要鎖定的方式。您將探索平行性粒度的概念,以及通過選擇併發程式結構和最佳化工作負載來實現細粒度和粗粒度的平行任務。您還將學習如何使用任務平行庫、取消、超時以及如何處理錯誤。您將知道如何為特定的平行算法選擇適當的數據結構,以實現可擴展性和性能。此外,您將學習伺服器可擴展性、非同步 I/O 和執行緒池,並編寫響應迅速的傳統 Windows 和 Windows Store 應用程式。
在本書結束時,您將能夠診斷和解決多執行緒應用程式中可能發生的典型問題。
風格與方法
一本易於跟隨的範例導向指南,將引導您了解使用 C# 的併發和多執行緒的核心原則。