The Core of .NET

TH05 Better Parallel Code with C# Channels

03/03/2022

9:30am - 10:45am

Level: Intermediate

Jeremy Clark

Developer Educator

JeremyBytes.com

Producer/consumer problems show up in a lot of programming scenarios, including data processing and machine learning. Channels give us a thread-safe way to communicate between producers and consumers, and we can run them all concurrently. In this presentation, we will explore channels by comparing parallel tasks with continuations to using a producer/consumer model. In the end, we'll have another tool in our toolbox to help us with concurrent programming.

You will learn:

  • How to understand the producer/consumer pattern
  • How to use channels to communicate between async methods
  • How to compare channels to Task continuations