Question: Problem 2 . Write a code on a sequential function call of the following two function calls ( makeSum ( ) and makeMult ) in
Problem Write a code on a sequential function call of the following two function calls makeSum and makeMult in the main Measure the time in microseconds to execute the two function calls. Now use two threads one to run makeSum and other to run on makeMult. Now check the time in microseconds to execute only the threaded code. Report both the times in the submission.
void makeSum
long sum;
forint i; i; i
sum i;
void makeMult
long mult;
forint i; i; i
multi;
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
