- Exercise

In this exercise, you will design asynchronous functions and compare the performance of single and multithreaded programs.

We'll cover the following

Task 1

The calculation of the scalar product in the program below is quite easy to parallelize. Take a look at the explanation below to better understand the code.

Launch four asynchronous functions to calculate the scalar product.

Get hands-on with 1200+ tech skills courses.