EngineeringSenior DeveloperTraining Sessions

Session 01 - Async/Await, Threading & Task Parallelism trong .NET

Premium

Đây là chủ đề bị hiểu sai nhiều nhất ở level senior. Nhiều người "dùng async hàng ngày", nhưng thực ra chỉ đang viết code chạy được, chưa hẳn hiểu cách runtime vận hành.


Mục tiêu

  • Hiểu bản chất async/await
  • Phân biệt async với multithreading
  • Biết khi nào nên và không nên dùng Task.Run
  • Tránh deadlock, thread starvation, fake async
  • Review async code như một master

1) Bản chất thật sự của async/await

Điều quan trọng số 1: async/await không phải là "chạy trên thread khác". Nó là cơ chế giúp bạn viết asynchronous non-blocking flow dưới dạng code tuần tự dễ đọc.

Premium

Continue with premium access

Session 01 - Async/Await, Threading & Task Parallelism trong .NET is part of the premium library. Sign in with a premium account to unlock the full lesson and the rest of this track.

01 Full premium lesson access
02 Deeper implementation notes
03 Ongoing content updates