Async Programming in .NET
This course is currently not scheduled on the open calendar, but can be organized on request.Request Course
C#, some notions of multithreading
Learn to use the Task Parallel Library & the new async/await keywords to simplify your multithreaded code or offload long-running instructions across multiple CPU’s/cores.
Instructor-led with exercises
The course starts by covering all important aspects of parallel tasking: why is this important & how can we achieve this?We’ll learn about starting tasks in parallel, waiting for tasks, composing tasks, working with nested & child tasks, working with exceptions & working with cancellation.
After that, we’ll (shortly) go into parallel extensions & PLINQ.Once these principles are known, we can now venture into the async/await keywords: what are they used for, how are they linked to TPL, and when should you (or shouldn’t you) use them?
- Threads to Tasks
- The SynchronizationContext
- Nested & Child Tasks
- Composing Tasks
- Cancelling Tasks
- Data Parallelism
- Loops & breaking loops
- Cancelling loops
- Async & await
- A misconception
- From Task syntax to async/await syntax