...

/

Introduction to Tasks

Introduction to Tasks

This lesson gives an introduction to tasks (consisting of promises and futures) which are an important part of multithreading in C++.

We'll cover the following...

In addition to threads, C++ has tasks to perform which work asynchronously. These tasks need the <future> header, and they are parameterized with a work package. Additionally, they consist of two associated components: a promise and a future; Both are connected via a data channel. The promise executes the ...