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.
-
(5 points) Exercise 2
-
(5 points) Exercise 6
-
(5 points) Exercise 9
-
(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.
-
Process identifier (PID)
-
Start of the list of children
-
Current state (e.g., running)
-
Priority
-
Time that execution started
-
CPU time consumed
-
Main memory used
-
File descriptor table
-
Parent process
-
Pointers to location of process in sibling list
back
to assignments