+ 3
C# Thread vs Task
How would you describe each and what scenario is each best for.
3 Antworten
+ 1
That's great, thanks!
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