Operating Systems 173323 (3 cu)

Exercise 9

Week 50

Exercises 9 are in computer classes:

Group 1: on Monday Dec. 10 at 16-18 in T/B178
Group 2: on Friday Dec. 14 at 8-10 in T/B178

  1. Consider the process scheduling in Solaris 2, Windows 2000, and Linux operating systems. The copies of the material for this task are available in Rekursio's room. Explain briefly the process scheduling in these operating systems.

  2. Consider the synchronization mechanisms used in Solaris 2 and Windows 2000 operating systems. The copies of the material for this task are available in Rekursio's room. Explain briefly the process synchronization in these operating systems.

  3. Implement a program that visualizes the Dining Philosophers problem. The possible output of the program can be as below. The output can be different, depending on your solution. You can implement the philosophers as concurrently running threads and the times for thinking and eating can be decided randomly. You will get 1 bonus point from this task.
    ...
    Philosopher 2: Did thinking 2 seconds. Now hungry.
    Philosopher 2: Takes chopstick 2.
    Philosopher 2: Waits for chopstick 3.
    Philosopher 3: Stops eating. Starts thinking.
    Philosopher 2: Takes chopstick 3.
    Philosopher 2: Eats.
    ...