CS 3204 Operating Systems (Keller) - Spring 2002

Homework 1

Due: 1 February, 2002, 11:59:59 PM.  Remember that homework is not accepted late.

How to Submit:

Submit a Word, PDF or neatly formatted text document to the curator system containing all of your solutions.

Assignment:

All questions from Nutt are from Chapter 1, either pages 21-22 (for the second edition) or 26-27 (for 2nd edition, lab update).  The questions are the same in both editions.
  1. (5 points) Exercise 2
  2. (5 points) Exercise 6
  3. (5 points) Exercise 9
  4. (10 points) On either a Mandrake 8.1 (available in the unix lab) or Red Hat Linux 7.2 machine, look at the file /usr/include/linux/sched.h and locate the portion(s) that define the process descriptor.  For each of the following, provide the corresponding structure and field(s) from the header file.  Specify which operating system you are looking at.
    1. Process identifier (PID)
    2. Start of the list of children
    3. Current state (e.g., running)
    4. Priority
    5. Time that execution started
    6. CPU time consumed
    7. Main memory used
    8. File descriptor table
    9. Parent process
    10. Pointers to location of process in sibling list
back to assignments