This assignment makes use of the files contained in this zip file.
In the zip file there are the outlines of four C programs, The C programs are meant to simulate the workload that a server program might have. The "workload" that these programs are supposed to handle is filtering input files to output files, where "filtering" means copying an input file to an output file while changing the case of every n'th character (just like in the first homework assignment). The goal of the assignment is to implement and study three different strategies for doing a lot of filtering as quickly as possible.
The first program is
The second program is made up of the two files
The last program, Follow the directions in each of the four C files and implement these three worker strategies. When you programs are completed, try them on small, medium, and large runs of input files (small is 5 to 15 files, medium is 15 to 30, and large is anything above 30). How do they perform? Which strategy is fastest? Does the data you collect from doing many runs of these programs agree with what you were expecting? How large of a run can you do? Turn in a zip file containing your versions of the four C programs and an explanation of what you found when you ran the three different strategies. (Please do not send back to me the output files generated by the programs.) This assignment is due Wednesday, March 9. |