Skip to Content
Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications
book

Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications

by Vaskaran Sarcar
September 2024
Intermediate to advanced content levelIntermediate to advanced
479 pages
6h 34m
English
Apress
Content preview from Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
V. SarcarParallel Programming with C# and .NEThttps://doi.org/10.1007/979-8-8688-0488-5_2

2. Handling Special Scenarios

Vaskaran Sarcar1  
(1)
Kolkata, West Bengal, India
 

In Chapter 1, you learned about various aspects of tasks including continuation tasks and nested tasks. In this chapter, I’ll continue the discussion of task programming, but this time the focus will be handling special scenarios such as exceptions and cancellations. Let’s get started.

Introduction to Exceptions

In a multithreaded environment, handling exceptions can be tricky. The reason is obvious: different tasks may throw different exceptions. Since you are reading about the advanced concepts ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Parallel Programming with C# 8 and .NET Core 3.0

Hands-On Parallel Programming with C# 8 and .NET Core 3.0

Anton Selin

Publisher Resources

ISBN: 9798868804885Purchase LinkPublisher Website