TH17 Better Parallel Code with C# Channels

06/16/2022

2:45pm - 4:00pm

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