Sign in to confirm you’re not a bot
This helps protect our community. Learn more

Intro

0:00

Introducing System.Threading.Tasks.Parallel

1:18

Reminiscing with 14 year old discussions about parallelism and .NET

2:25

Basic tour through Parallel

6:50

Implementing a basic Parallel.Invoke

8:18

Implementing a basic Parallel.ForEach

10:49

Philosophy around defaults and abstracting away details

12:22

Challenges of and solutions for false sharing

17:35

Challenges of and solutions for unbalanced workloads

32:30

How Parallel interacts with the thread pool

41:41

The little-known Partitioner type, and a better Parallel.ForEach implementation

49:42

Parallel Stacks window in the Visual Studio debugger

1:01:40

Wrapping up

1:11:32
Deep .NET: Let's Talk Parallel Programming with Stephen Toub and Scott Hanselman
1.3KLikes
34,438Views
Sep 182024
Stephen and Scott are back with more Deep .NET goodness! This time we are talking about Parallel in .NET, parallelism, and parallel programming in general! Let's get into it! Chapters: 00:00:00 Intro 00:01:18 Introducing System.Threading.Tasks.Parallel 00:02:25 Reminiscing with 14 year old discussions about parallelism and .NET 00:06:50 Basic tour through Parallel 00:08:18 Implementing a basic Parallel.Invoke 00:10:49 Implementing a basic Parallel.ForEach 00:12:22 Philosophy around defaults and abstracting away details 00:17:35 Challenges of and solutions for false sharing 00:32:30 Challenges of and solutions for unbalanced workloads 00:41:41 How Parallel interacts with the thread pool 00:49:42 The little-known Partitioner type, and a better Parallel.ForEach implementation 01:01:40 Parallel Stacks window in the Visual Studio debugger 01:11:32 Wrapping up Resources: More Deep .NET:    • Deep .NET   Scott's Blog: https://www.hanselman.com/blog/back-t... Parallel Programming in C#: https://learn.microsoft.com/dotnet/st... Connect with .NET: Blog: https://aka.ms/dotnet/blog Twitter: https://aka.ms/dotnet/twitter TikTok: https://aka.ms/dotnet/tiktok Mastodon: https://aka.ms/dotnet/mastodon LinkedIn: https://aka.ms/dotnet/linkedin Facebook: https://aka.ms/dotnet/facebook Docs: https://learn.microsoft.com/dotnet Forums: https://aka.ms/dotnet/forums 🙋‍♀️Q&A: https://aka.ms/dotnet-qa 👨‍🎓Microsoft Learn: https://aka.ms/learndotnet #dotnet

Follow along using the transcript.

dotnet

325K subscribers