CS170 Lab 5 (kos_mp) -- Scoring Criteria
Here is the scoring criteria for lab 5, based on 10 questions, together
amounting to 100 points. For questions 4-8 the score depended on whether
the turned-in software was able to correctly execute automated tests.
- [5] Where there warnings during compilation? We expect no warnings
during compilation with default flags. It is a good idea to have no
warnings even with -Wall flag.
- [5] How readable is the code? Meaningful variable names and helpful
comments improve readability. Logical, simple structuring helps,
too.
- [10] What was the quality of the code? Points will be docked for
unused variables, illogical organization of code, for grossly inefficient
use of memory, and for significant unnecessary code.
- [5] Code test: Booting, printing a line, getpid(), exiting. Easy!
- [5] Code test: Dynamic memory allocation: sbrk() and, using it, malloc()
- [5] Code test: Standard output (fstat and ioctl) via printf()
- [25] Code test: Forking: once, 10 times, 10 times with parent blocking
- [5] Code test: a parent wait()ing for the child, and verifying the exit status
- [30] Code test: execve():a one-line without arguments, and argtest with 9 arguments
- [5] Code test: Checking if your KOS handles invalid input to system calls