- Exercise

In this lesson, we'll solve an exercise.

We'll cover the following

Problem statement #

The code is quite easy to parallelize.

  • Launch four asynchronous functions to calculate the scalar product.
  • Compare the execution time of the single and multithreaded program.
  • Are the cores fully utilized?

Get hands-on with 1400+ tech skills courses.