商品描述
Supercharge your applications with the ultimate guide to asynchronous and multithreaded programming in C#! C# Concurrency teaches you how to write effective multithreaded and asynchronous software in C#. Practical techniques, real-world examples, and useful code samples cut through the confusion around async/await and help you write rapid, reliable, and bug-free code. In C# Concurrency: Asynchronous and Multithreaded Programming you'll learn how to: - Take full advantage of async/await
- Write bug-free multithreaded code every time
- Create multithreaded code that delivers real performance improvements
- Grok C# and .NET multithreading and asynchronous primitives
- Know when to use concurrency techniques--and when not to use them! In C# Concurrency Nir Dobovizki, a seasoned C# veteran with over 30 years of high-performance programming experience, shares his deep knowledge and expert techniques. Say goodbye to frustrating pitfalls and impossible-to-find bugs that slow down your applications. Nir's careful approach will teach you how to navigate these challenges with ease, allowing you to achieve lightning-fast performance like never before! Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications. About the technology Asynchronous and multithreaded programs can perform multiple tasks simultaneously without losing speed or reliability. But getting concurrency right can challenge even experienced developers. This practical book teaches you to deliver concurrent C# apps that are lighting fast and free of the deadlocks and other synchronization issues that undermine performance and take forever to find. About the book C# Concurrency equips programmers with a comprehensive understanding of multithreading and asynchronous programming, focusing on the practical use of the C# async-await feature to simplify asynchronous tasks. It teaches how to avoid common pitfalls, addresses classic multithreading issues like deadlocks and race conditions, and advanced topics such as controlling thread of execution and using thread-safe collections. What's inside - .NET multithreading and asynchronous primitives
- When to use concurrency techniques--and when not to!
- Confidently use async/await About the reader For experienced C# programmers. No knowledge of asynchro- nous programming required. About the author Nir Dobovizki is a senior software architect and consultant who has worked on concurrent and asynchronous systems since the late 90s. Table of Contents 1 Asynchronous programming and multithreading
2 The compiler rewrites your code
3 The async and await keywords
4 Multithreading basics
5 async/await and multithreading
6 When to use async/await
7 Classic multithreading pitfalls and how to avoid them
Part 2
8 Processing a sequence of items in the background
9 Canceling background tasks
10 Await your own events
11 Controlling on which thread your asynchronous code runs
12 Exceptions and async/await
13 Thread-safe collections
14 Generating collections asynchronously/await foreach and IAsyncEnumerable
- Write bug-free multithreaded code every time
- Create multithreaded code that delivers real performance improvements
- Grok C# and .NET multithreading and asynchronous primitives
- Know when to use concurrency techniques--and when not to use them! In C# Concurrency Nir Dobovizki, a seasoned C# veteran with over 30 years of high-performance programming experience, shares his deep knowledge and expert techniques. Say goodbye to frustrating pitfalls and impossible-to-find bugs that slow down your applications. Nir's careful approach will teach you how to navigate these challenges with ease, allowing you to achieve lightning-fast performance like never before! Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications. About the technology Asynchronous and multithreaded programs can perform multiple tasks simultaneously without losing speed or reliability. But getting concurrency right can challenge even experienced developers. This practical book teaches you to deliver concurrent C# apps that are lighting fast and free of the deadlocks and other synchronization issues that undermine performance and take forever to find. About the book C# Concurrency equips programmers with a comprehensive understanding of multithreading and asynchronous programming, focusing on the practical use of the C# async-await feature to simplify asynchronous tasks. It teaches how to avoid common pitfalls, addresses classic multithreading issues like deadlocks and race conditions, and advanced topics such as controlling thread of execution and using thread-safe collections. What's inside - .NET multithreading and asynchronous primitives
- When to use concurrency techniques--and when not to!
- Confidently use async/await About the reader For experienced C# programmers. No knowledge of asynchro- nous programming required. About the author Nir Dobovizki is a senior software architect and consultant who has worked on concurrent and asynchronous systems since the late 90s. Table of Contents 1 Asynchronous programming and multithreading
2 The compiler rewrites your code
3 The async and await keywords
4 Multithreading basics
5 async/await and multithreading
6 When to use async/await
7 Classic multithreading pitfalls and how to avoid them
Part 2
8 Processing a sequence of items in the background
9 Canceling background tasks
10 Await your own events
11 Controlling on which thread your asynchronous code runs
12 Exceptions and async/await
13 Thread-safe collections
14 Generating collections asynchronously/await foreach and IAsyncEnumerable
商品描述(中文翻譯)
用終極指南提升您的應用程式,掌握 C# 的非同步與多執行緒程式設計!
C# 並發 教您如何在 C# 中撰寫有效的多執行緒和非同步軟體。實用的技術、真實的範例和有用的程式碼範本幫助您釐清 async/await 的混淆,並協助您撰寫快速、可靠且無錯誤的程式碼。 在 C# 並發:非同步與多執行緒程式設計 中,您將學會如何: - 充分利用 async/await- 每次都撰寫無錯誤的多執行緒程式碼
- 創建能夠帶來實際性能提升的多執行緒程式碼
- 理解 C# 和 .NET 的多執行緒及非同步原語
- 知道何時使用並發技術——以及何時不使用它們! 在 C# 並發 中,Nir Dobovizki,一位擁有超過 30 年高效能程式設計經驗的資深 C# 專家,分享他的深厚知識和專業技術。告別那些令人沮喪的陷阱和難以找到的錯誤,這些問題會拖慢您的應用程式。Nir 的細心方法將教您如何輕鬆應對這些挑戰,讓您實現前所未有的閃電般快速性能! 購買印刷版書籍可獲得 Manning Publications 提供的免費 PDF 和 ePub 格式電子書。 關於技術 非同步和多執行緒程式可以同時執行多個任務,而不會失去速度或可靠性。但要正確處理並發,即使是經驗豐富的開發者也會面臨挑戰。這本實用的書籍教您如何交付快速且無死鎖及其他同步問題的並發 C# 應用程式,這些問題會影響性能並且難以找到。 關於本書 C# 並發 使程式設計師全面了解多執行緒和非同步程式設計,重點在於實際使用 C# 的 async-await 特性來簡化非同步任務。它教您如何避免常見的陷阱,解決經典的多執行緒問題,如死鎖和競爭條件,以及控制執行緒和使用執行緒安全集合等進階主題。 內容概覽 - .NET 多執行緒和非同步原語
- 何時使用並發技術——以及何時不使用!
- 自信地使用 async/await 讀者對象 針對有經驗的 C# 程式設計師。不需要具備非同步程式設計的知識。 關於作者 Nir Dobovizki 是一位資深軟體架構師和顧問,自 90 年代末以來一直從事並發和非同步系統的工作。 目錄 1 非同步程式設計和多執行緒
2 編譯器重寫您的程式碼
3 async 和 await 關鍵字
4 多執行緒基礎
5 async/await 和多執行緒
6 何時使用 async/await
7 經典多執行緒陷阱及其避免方法
第 2 部分
8 在背景中處理項目序列
9 取消背景任務
10 等待您自己的事件
11 控制您的非同步程式碼在哪個執行緒上運行
12 異常與 async/await
13 執行緒安全集合
14 非同步生成集合/await foreach 和 IAsyncEnumerable
作者簡介
Nir Dobovizki is a software architect and a senior consultant. He has worked on concurrent and asynchronous systems, mostly high-performance servers, since the late 90s. His career has spanned multiple companies in the medical, defense, and manufacturing industries, where he has solved numerous problems arising from incorrect usage of multithreading and asynchronous programming.
作者簡介(中文翻譯)
Nir Dobovizki 是一位軟體架構師和高級顧問。自90年代末以來,他一直專注於並發和非同步系統的開發,主要是高效能伺服器。他的職業生涯涵蓋了醫療、國防和製造業的多家公司,在這些領域中,他解決了許多因多執行緒和非同步程式設計不當使用而產生的問題。