Operating system C programming

q1) Time the execution of two versions of the modified “helloWorld” program, one with printing “Hello World” multiple times and the other without printing but with the loop.
Detailed instructions: Consider a simple HelloWorld C program (e.g. page 6 in Kernighan and Ritchie). We will need two “long” versions of the HelloWorld program: one that executes for several seconds printing “Hello World” in a loop (number of passes required to make the program execute for several seconds depends on the CPU of your computer) and another one again with the same big loop but no printing. I suggest you modify the HelloWorld program so that it takes two command line parameters: the first being the number of passes through the loop and the other parameter (binary) selecting printing/no_printing.
Use with the time command to record User/System/Real time. Report the individual times for each run and the average over at least three runs (you may summarize your results in a table: two rows: one for each program, three columns: one for each measure User/System/Real.
Explain the difference in the execution times of the two version of the long HelloWorld program.
Show the code for the modified HelloWorld program(s).

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER