Unveiling Asynchronous & Parallel Programming in .NET Blog Series

Nakib
.NET Under the hood
2 min readJul 7, 2023
Photo by Joshua Reddekopp on Unsplash

Task-Based Asynchronous Programming is an excellent innovation in the .NET Platform. It abstracts away much lower-level work so that we can focus solely on the business logic. For example, almost all the time, we don’t need to handle threads manually.

Misconceptions:

However, sometimes I find some misconceptions among .NET developers. Some common examples of misconceptions are, ‘Task.Run() always creates a new thread’ or ‘ASP.NET Core assigns a thread to each new request,’ etc.

Also, most developers are unaware of what happens under the hood.

Reason:

The reason may be that only a few resources discuss what happens under the hood, and they are too scattered to understand and connect for beginner developers.

Target Audience:

Here we will discuss what happens under the hood of Task-Based Asynchronous Programming.

This is not an introductory series about asynchronous programming rather, here, we will discuss what happens under the hood. So we are assuming that the readers already know the basics of asynchronous & Parallel programming, tasks, async/await, etc.

But if you are still confused if you met the prerequisite, you may start reading, and whenever you find something unfamiliar, just learn that and continue again.

All posts:

The links to the posts are given below. You may also subscribe to this publication to get notified.

  1. Internal Mechanisms of Tasks in .NET

2. Hidden Working of ExecutionContext in .NET

3. Inner mechanisms of SynchronizationContext in .NET

4. Technical Details of Parallel Programming in .NET(Not Published Yet)

If you like my Content, You may support me at the link below

I will keep updating the blogs if something changes or something is missing that should be added or if there are some corrections.

Feel free to correct me if something is wrong, and the posts will always be open for Corrections, Changes, and Updates.

--

--

Nakib
.NET Under the hood

Software Engineer, Currently working in Angular/.NET stack. Language/Tool Agnostic, strongly focuses on the fundamentals, constant learner.