The Thread class is used for creating and manipulating a thread in Windows. A Task represents some asynchronous operation and is part of the Task Parallel Library, a set of APIs for running tasks asynchronously and in parallel.
source https://www.c-sharpcorner.com/article/task-and-thread-in-c-sharp/
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 .
ReplyDelete