Book description
If you're one of the many developers uncertain about concurrent and multithreaded development, this practical cookbook will change your mind. With more than 75 code-rich recipes, author Stephen Cleary demonstrates parallel processing and asynchronous programming techniques, using libraries and language features in .NET 4.5 and C# 5.0.
Publisher resources
Table of contents
- Praise for Concurrency in C# Cookbook
- Preface
-
1. Concurrency: An Overview
- 1.1. Introduction to Concurrency
- 1.2. Introduction to Asynchronous Programming
- 1.3. Introduction to Parallel Programming
- 1.4. Introduction to Reactive Programming (Rx)
- 1.5. Introduction to Dataflows
- 1.6. Introduction to Multithreaded Programming
- 1.7. Collections for Concurrent Applications
- 1.8. Modern Design
- 1.9. Summary of Key Technologies
-
2. Async Basics
- 2.1. Pausing for a Period of Time
- 2.2. Returning Completed Tasks
- 2.3. Reporting Progress
- 2.4. Waiting for a Set of Tasks to Complete
- 2.5. Waiting for Any Task to Complete
- 2.6. Processing Tasks as They Complete
- 2.7. Avoiding Context for Continuations
- 2.8. Handling Exceptions from async Task Methods
- 2.9. Handling Exceptions from async Void Methods
- 3. Parallel Basics
- 4. Dataflow Basics
- 5. Rx Basics
- 6. Testing
-
7. Interop
- 7.1. Async Wrappers for “Async” Methods with “Completed” Events
- 7.2. Async Wrappers for “Begin/End” methods
- 7.3. Async Wrappers for Anything
- 7.4. Async Wrappers for Parallel Code
- 7.5. Async Wrappers for Rx Observables
- 7.6. Rx Observable Wrappers for async Code
- 7.7. Rx Observables and Dataflow Meshes
- 8. Collections
-
9. Cancellation
- 9.1. Issuing Cancellation Requests
- 9.2. Responding to Cancellation Requests by Polling
- 9.3. Canceling Due to Timeouts
- 9.4. Canceling async Code
- 9.5. Canceling Parallel Code
- 9.6. Canceling Reactive Code
- 9.7. Canceling Dataflow Meshes
- 9.8. Injecting Cancellation Requests
- 9.9. Interop with Other Cancellation Systems
- 10. Functional-Friendly OOP
- 11. Synchronization
- 12. Scheduling
- 13. Scenarios
- Index
- Colophon
- Copyright
Product information
- Title: Concurrency in C# Cookbook
- Author(s):
- Release date: June 2014
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449367565
You might also like
book
Concurrency in C# Cookbook, 2nd Edition
If you’re one of many developers still uncertain about concurrent and multithreaded development, this practical cookbook …
book
Concurrency in .NET
Concurrency in .NET teaches you how to build concurrent and scalable programs in .NET using the …
book
High-Performance Programming in C# and .NET
Enhance your applications' performance using best practices for benchmarking, application profiling, asynchronous programming, designing responsive UIs, …
book
Parallel Programming and Concurrency with C# 10 and .NET 6
Leverage the latest parallel and concurrency features in .NET 6 when building your next application and …