How to calculate the average of numbers in a text file line by line (ex: average of numbers in line 1 = xxx, average of numbers in line 2 = yyy ....) using threads in C programming
● Read line by line from the file.
● Once a record of the data set is taken by a thread, the same data set should not be taken by another thread.
● Calculate the average of each line and write to another file.