Question: ASSIGNMENT 2 DESCRIPTION: For this assignment, you need to create a threaded program ( assignment 2 _ summation.cpp ) . It performs a summation operation
ASSIGNMENT
DESCRIPTION: For this assignment, you need to create a threaded program
assignmentsummation.cpp It performs a summation operation of randomly generated n integer
numbers with multithreads.
When running the program, you need to measure execution times. For this, you must place the header
file hpchelpers.hpp in the same directory where your source code is located. With the header file, you
can measure computation time easily.
Task Create a multithreaded program.
Task Run the program with different input numbers and in three scenarios
to measure execution times;
Scenario No threaded summation
Scenario threaded summation
Scenario multithreaded 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 xaxis with the input number of
elements and the yaxis 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
