C# Thread vs Task | Sololearn: Learn to code for FREE!


C# Thread vs Task

How would you describe each and what scenario is each best for.

6/6/2018 3:43:21 AM


3 Answers

New Answer


This may help, https://www.c-sharpcorner.com/blogs/task-vs-thread-differences-in-c-sharp1


That's great, thanks!


In computer science, a Task is a future or a promise. A Thread is a way of fulfilling that promise. You can use Task to specify what you want to do then attach that Task with a Thread. In .NET 4.0 terms, a Task represents an asynchronous operation . Thread(s) are used to complete that operation by breaking the work up into chunks and assigning to separate threads . http://csharp.net-informations.com/language/task.htm