C#C
C#3y ago
joren

❔ Clarification on Async and Task.Run

So I've been trying out the Async and Task.Run, now I need some clarification about the two and their differences.

Now Async is basically one worker, that shifts its attention from Task to Task while another task is being processed (without needing workers attention). Now I read that C# achieve this by using the Task.Scheduler, which has a thread pool and what not.

Now Task.Run would be parallelism in C#, it creates a thread with the function you pass to it.

Now, granted the above information is correct, Async using a thread pool wouldnt that be considered utilizing parallelism?
Was this page helpful?