CS 3733 Operating Systems, Spring 2010 Assignment 4 Comments
- Use a fixed point font when printing code.
- Do not print color output on a monochome printer.
- Avoid using exit with a negative parameter.
- Do not exit from searchForTwoStrings if an error occurs. Use return.
- searchForTwoString should never print anything, even if an error occurs.
- When using fork, label the parent and child code.
- You should always check for errors when doing system calls such as
pipe and malloc.
- It should not be possible for your program to produce a buffer overflow.
- If searchForTwoStrings opens a file, it must close the file before returning.
- When using a pipe for Part 4, you do not need to redirect the pipe output.
- If you use printf to a pipe, the result might just go to a local buffer
and not get to the pipe. In this case it will not be read.
- You cannot assume that printf to a pipe is atomic.
- You cannot assume that read operations are atomic or that a read will
get all of the byes requested.
- If I have written the comment: "not concurrent" it means that your
program is executing serially, even if you created multiple processes..