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 There is no minimum number or maximum number of values the person can enter. Only use the amount of space that you need, and do not allocate extra.
C++ 11 std::thread or POSIX pthread code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
