Learn Multithreading & Asynchronous Programming in C# | .NET 8 | 2024 | Parallel Programming
๐ALL-ACCESS Subscription: Unlock access to all of my courses, both now and in the future at a low $19.99 / month. https://frankliucs.com/all-access ๐ Master Multithreading & Asynchronous Programming in C# and .NET 8 https://frankliucs.com/multiasync ๐ ASP.NET Deep Dive (32 Hours Complete Course) https://frankliucs.com/aspnetcore ๐ Complete Web API Course in .NET 10 https://frankliucs.com/webapi-course ๐ Blazor Deep Dive in .NET 8 - From Beginner to Advanced https://frankliucs.com/blazor8 ๐ Learn Blazor while building an Inventory Management System in .NET 8 https://frankliucs.com/blazor-ims ๐ Become advanced-level programmer with challenges from CodeCrafters. Over 50k devs use CodeCrafters, including staff-level engineers at Google, GitHub, Vercel, and more. Use the following link to get 40% off: https://frankliucs.com/codecrafters ๐ Learn .NET Core MVC in .NET 8 by building a Market Management System https://frankliucs.com/mvc ๐ Complete Guide to ASP.NET Core Identity in .NET 8 https://frankliucs.com/identity ๐ SQL Masterclass: From Zero to Hero with SQL Server https://frankliucs.com/sql ๐Learn .NET MAUI while creating a Contacts App in .NET 7: https://frankliucs.com/maui ๐ฅLearn Blazor while creating an Inventory Management System in .NET 6 https://frankliucs.com/blazor-ims ๐Complete Blazor Course: Build an e-commerce app with ASP.NET Blazor and Clean Architecture https://frankliucs.com/blazor-course ๐Clearn Architecture Course https://frankliucs.com/architecture-course ๐ Connect with me: https://frankliucs.com/ ๐ Support me on Patreon: https://www.patreon.com/frankliucs โ Support me on Buy me a Coffee: https://www.buymeacoffee.com/frankliucs 00:00:00 Introduction 00:03:45 CPU, Thread and Thread Scheduler 00:11:26 Basic Syntax to start a thread 00:26:30 Why threading Divide and Conquer 00:38:35 Why threading Offload long running tasks 00:49:41 Assignment 1 (Question): Create a Web Server 00:54:47 Assignment 1 (Answer): Create a Web Server 01:04:16 Threads Synchronization Overview 01:15:40 Critical Section and Atomic Operation 01:19:44 Exclusive Lock 01:24:25 Assignment 2 (Question) - Airplane seats booking system 01:28:11 Assignment 2 (Answer) - Airplane seats booking system 01:37:30 Use Monitor to add timeout for locks 01:49:57 Use Mutex to synchronize across processes 02:08:27 Reader and Writer Lock 02:25:41 Use semaphore to limit number of threads 02:43:36 Use AutoResetEvent for signaling 02:58:43 Use ManualResetEvent to release multiple threads 03:06:32 Assignment 3 - Two way signaling in Producer - Consumer scenario 03:10:07 Assignment 3 (Answer): Two way signaling in Producer - Consumer scenario 03:26:10 Thread Affinity 03:38:46 Thread Safety 03:41:15 Nested locks and deadlock The following are in the full course (see links above) Multithreading MISC Debug programs with multiple threads States of a thread Make thread wait for some time Returning results from a thread Canceling a thread Thread Pool Exception handling in threads Task based Asynchronous Programming Multithreading vs Asynchronous Programming Basic Syntax of using Task Task vs Thread Task uses thread pool by default Returning result from Task Assignment 4 (Question) - Returning results from Task Assignment 4 (Answer) - Returning results from Task Task Continuation - Wait, WaitAll, Result Task Continuation - ContinueWith Task Continuation WhenAll, WhenAny Task Continuation - Continuation Chain & Unwrap Exception Handling in Tasks Tasks synchronization Task Cancelation Async and Await Overview of Async & Await Basic syntax of Async and Await Which thread is used Continuation after returning value Exception handling with async and await Await and Synchronization context What does await do Parallel Loops Parallel Loops Overview and Basic Syntax What happens behind the scene Exception handling in parallel loops Stop Break ParallelLoopResult Cancelation in Parallel Loops Thread local storage Performance considerations PLINQ Basics of PLINQ Producer, consumer and buffer foreach vs ForAll Exception handling in PLINQ Cancelation in PLINQ Concurrent Collections ConcurrentQueue ConcurrentStack BlockingCollection and Producer & Consumer scenario #csharp #dotnet #multithreading #parallelprogramming
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.