From Zero to Hero: Parallel Programming in C#

Master modern multi-threading in C# using the latest parallelism features

About This Course

Threading, Parallel, Tasks, Channels. C# supports so many features that could be used for multi-threading and parallelism, but it can be very confusing to know which one you should be using in every usecase. In this course, parallelism master Brandon Minnick will teach you everything you need to know to use C#’s amazing parallelism capabilities and clear every possible question you might have about which approach to follow to ensure that your applications run and scale as well as they possibly can.

Course Curriculum

3h 31m 7 sections
Welcome
00:38 Free preview
What will you learn in this course?
00:46 Free preview
Who is the course for and prerequisites
00:39 Free preview
Parallel vs Asynchronous
01:18
Introduction to Asynchronous Programming
15:17
Introduction to async / await
14:15
Introduction to Parallel Programming
04:14
Deadlocks and Race Conditions
23:16
Tasks in Parallel
01:31
Task.WhenAll
18:18
Task.WhenAny
14:05
Task.WhenEach (IAsyncEnumerable)
11:57
Parallel.Invoke
17:14
Parallel.For
08:27
Parallel.ForAsync
08:24
Parallel.ForEach
11:51
Parallel.ForEachAsync
05:38
Introduction to Channels
17:23
Using Channels in Code
18:47
Introduction to PLINQ
08:52
Using PLINQ in Code
08:10

Meet Your Instructor

Brandon Minnick

Brandon Minnick

Brandon is a Microsoft MVP and a .NET Developer Advocate at AWS, where he gets to work closely with the developer community to help fellow mobile app and cloud developers make 5-star apps. Brandon has nearly a decade of experience creating iOS and Android apps in C#, previously working at both Xamarin and Microsoft. He is also the lead maintainer of the popular .NET NuGet packages ".NET MAUI Community Toolkit" and “AsyncAwaitBestPractices." Brandon is an avid mobile app developer who loves to code and has contributed to and published countless apps!

View all courses by Brandon Minnick

What's New

Hands-On: Learn PostgreSQL
course

Hands-On: Learn PostgreSQL

Learn PostgreSQL through hands-on coding exercises. Practice what you learn with interactive challenges designed for every level.

Learn more about Hands-On: Learn PostgreSQL
Free Hands-On: C# for Beginners
course

Free Hands-On: C# for Beginners

Learn C# through hands-on coding exercises. Practice what you learn with interactive challenges designed for everyone, from beginners to experts.

Learn more about Free Hands-On: C# for Beginners
Getting Started: AI for .NET Developers
course

Getting Started: AI for .NET Developers

Get started with integrating AI into your .NET applications effectively using the latest LLM best practices.

Learn more about Getting Started: AI for .NET Developers
Getting Started: Building .NET Applications on AWS
course

Getting Started: Building .NET Applications on AWS

Learn how to build and deploy .NET applications on AWS using CDK, Lambda, DynamoDB, S3, and more.

Learn more about Getting Started: Building .NET Applications on AWS
What's new in C# 14
blog

What's new in C# 14

This guide covers every new C# 14 feature, explains its benefits, and provides practical code examples to help you navigate how you can use them.

Learn more about What's new in C# 14
Let's Build It: AI Chatbot with RAG in .NET Using Your Data
course

Let's Build It: AI Chatbot with RAG in .NET Using Your Data

Build a Retrieval-Augmented Generation (RAG) chatbot that can answer questions using your data.

Learn more about Let's Build It: AI Chatbot with RAG in .NET Using Your Data
From Zero to Hero: SignalR in .NET
course

From Zero to Hero: SignalR in .NET

Enable enterprise-grade real-time communication for your web apps with SignalR.

Learn more about From Zero to Hero: SignalR in .NET
Deep Dive: Solution Architecture
course

Deep Dive: Solution Architecture

Master solution architecture and turn business needs into scalable, maintainable systems.

Learn more about Deep Dive: Solution Architecture
Migrating: ASP.NET Web APIs to ASP.NET Core
course

Migrating: ASP.NET Web APIs to ASP.NET Core

A step-by-step process to migrate ASP.NET Web APIs from .NET Framework to ASP.NET Core.

Learn more about Migrating: ASP.NET Web APIs to ASP.NET Core
Getting Started: Caching in .NET
course

Getting Started: Caching in .NET

Let's make the hardest thing in programming easy for .NET software engineers.

Learn more about Getting Started: Caching in .NET
From Zero to Hero: Testing with xUnit in C#
course

From Zero to Hero: Testing with xUnit in C#

Learn how to test any codebase in .NET with the latest version of xUnit, the industry-standard testing library.

Learn more about From Zero to Hero: Testing with xUnit in C#
Create a ChatGPT Console AI Chatbot in C#
blog

Create a ChatGPT Console AI Chatbot in C#

This walkthrough is your hands-on entry point to create a basic C# console application that talks to ChatGPT using the OpenAI API.

Learn more about Create a ChatGPT Console AI Chatbot in C#