+ 3

C# Thread vs Task

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

6th Jun 2018, 3:43 AM
🤖Khrys🤗
🤖Khrys🤗 - avatar
3 ответов
6th Jun 2018, 9:18 AM
Rusty.Metal
+ 1
That's great, thanks!
6th Jun 2018, 8:09 PM
🤖Khrys🤗
🤖Khrys🤗 - avatar
0
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
15th Jul 2020, 4:49 AM
rahul kumar
rahul kumar - avatar