Question: Write a multithreaded program that calculates various statistical values for a list of numeric values. Use either C++11 std::thread or POSIX pthread code. This program
Write a multithreaded program that calculates various statistical values for a list of numeric values. Use either C++11 std::thread or POSIX pthread code.
This program is passed a series of numbers on the command line. This program will then create three separate worker threads: one will determine the average of the numbers, a second and third will determine the maximum and minimum values respectively
For example, if your program is passed the integers
1, 5, 10
avg is 5.33
Max is 10
Min is 1
C++ Program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
