In your Linux installation, modify the numbers.sh script, to do the following:
Add to the script commands to display the system time, before and after the process. Optional: store the system time in variables, to display just the difference at the end of the process, i.e. how many hours/minutes/seconds it took to run this script. Hint: use the built-in SECONDS variable to do most of the work.
Modify the "for" loop to repeat one million (1,000,000) times.
Save the script and delete file1.txt that was created from the previous exercise.
Run the script.
You should now have a file called file1.txt containing one million lines, with each line being a random number. You should also have information indicating how long this process took to run.
Create a C program to perform this task, to create file2.txt, and compare execution times. Can you use what you have learned in the last 2 modules, like multithreading or synchronization, to make this process run faster? How would you do that? Use at least 2 other methods to try to improve execution time.
Write down the summary of the results, with the following information:
Describe the different methods you used to perform this task
Explain why you chose each of those methods.
Did each of these methods perform as you expected them to, or were there any surprises? Describe your findings in detail.
If your system had double its current processing power (CPU power), how much of an improvement would you expect for this process? Explain the reasons for that estimate, and provide references to support your opinion.