|
|
Assignment 5Friday, October 1, Due Wednesday, October 6 and Friday October 8
Program for Testing Fork with Open Files (Due Wednesday, October 6)1. Create a text file that consists of many lines of the following form.
2. Write a hypothesis of what you think the output file will look like if you run the program shown below (from the Bach book). Be sure you write your hypothesis before you run the program. Justify why you think the output file will look the way you predict it to look. You will not be graded on this part of the exercise.
3. Run the program, examine the output for anomalies (places where the written file does not match the input file). Analyze the results and discuss why you believe such anomalies do or do not appear. Turn in a section that has an anomaly in it. You may have to run this on very large input files to find an anomaly. Indeed you may need to run it on another computer. Modifying and Compiling the Kernel, Due Friday, October 8Modify the kernel in some simple way, for example, to print a value to the screen at a certain point. There are some places we found when looking at the boot code where things were printed, for example. You could change that to print something else. The purpose is to learn how to modify your OS, recompile it, and run it as a new, improved (?) operating system. Those of you with more familiarity with this process might need to lend your expertise to those who have little such expertise. You should turn in a discussion of the modification you made and the steps you had to perform to compile the program. |
|
|