dotnet

Let's Talk Parallel Programming with Stephen Toub


Listen Later

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:
000: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: https://www.youtube.com/playlist?list=PLdo4fOcmZ0oX8eqDkSw4hH9cSehrGgdr1
Scott's Blog: https://www.hanselman.com/blog/back-to-parallel-basics-do-you-really-want-to-do-that-or-why-doesnt-the-new-parallelfor-support-biginteger
Parallel Programming in C#: https://learn.microsoft.com/dotnet/standard/parallel-programming/
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
...more
View all episodesView all episodes
Download on the App Store

dotnetBy dotnet