So I am very new to multi-thread programming using Pthread in Linux. Can someone show me an example of something like taking a list of numbers on the command line and will then create three separate worker threads.
One thread determine the average of the numbers, second
determine the maximum value, and third determine the
minimum value.
so if i put in, say:
90 81 78 95 79 72 85
Code:The program will report The average value is 82 The minimum value is 72 The maximum value is 95