Question: ASSIGNMENT 2 DESCRIPTION: For this assignment, you need to create a threaded program ( assignment 2 _ summation.cpp ) . It performs a summation operation

ASSIGNMENT 2
DESCRIPTION: For this assignment, you need to create a threaded program
(assignment2_summation.cpp). It performs a summation operation of randomly generated n integer
numbers with multi-threads.
When running the program, you need to measure execution times. For this, you must place the header
file ("hpc_helpers.hpp") in the same directory where your source code is located. With the header file, you
can measure computation time easily.
Task 1. Create a multi-threaded program.
Task 2. Run the program with different input numbers -10,1000,10000, and 100000 in three scenarios
to measure execution times;
Scenario 1. No threaded summation
Scenario 2.100 threaded summation
Scenario 3.1000 multi-threaded summation
After measuring the execution times, you need to create a bar graph showing how the selection sort with
three scenarios works differently. In the bar graph, you must set the x-axis with the input number of
elements and the y-axis with the execution time (seconds). Please note that you must run each scenario
five times and complete the following table in an Excel file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!