Tasks
This lesson discusses the Task class in C#
We'll cover the following...
Tasks
Tasks fall under the realm of parallel programming, which we'll briefly touch upon in this course. Note that tasks are also used when programming asynchronously in C#, however, this lesson doesn't discuss them in that context, rather it demonstrates how to use them for compute-intensive operations. For asynchronous I/O bound tasks, please refer to the asynchronous programming section.
Over the years as processor speeds peaked, multicore systems have become ubiquitous. Having more than one processor on a system allows two threads of a process to execute in parallel, i.e. programs can be parallel and concurrent at the same time. With a single processor, a multithreaded program can only be concurrent. The APIs in the System.Threading.Tasks
namespace facilitate programming on multicore machines and makes more ...