University of Helsinki - Department of Computer Science
Homework                                          [suomeksi Sivu suomen kielellä] (näyttö layout) (tulostus layout) (kämmen layout)

Operating Systems II,  Spring 2004, HW 2

This will be covered in practise session during the week 14 (30.3-1.4.2004)

  1. Processes
    1. Problem 3.1 from text book [Stal01, p. 149]
    2. Problem 3.5 from text book.
       
  2. Give an example on an application problem that would be best to solve with similar processes as
    1. process 1 in Fig 4.15 [Stal01, p. 185], i.e., each process is one ULT, running in its own LWP
    2. process 3 in Fig 4.15
    3. process 4 in Fig 4.15
       
  3. Threads
    1. Problem 4.4 from text book [Stal01, p. 195]
    2. problem 4.5 from text book [Stal01, p. 195]
       
  4. Give a synchronization example, where Solaris thread primitive sema_tryp() is used, but a similar solution with primitive sema_p() would not work. Explain..
     
  5. How would one use Unix semaphore operation semop(sem, sem_op) to solve the Dining Philosophers Problem in Fig 6.12.? You can get more information on semop with Unix man command.
     
  6. How would one deliver the operating systems service request to a server process running outside the microkernel from an ordinary application? How does that differ from a service request used in monolithic OS? What if the service request was done by a (kernel-level) OS routine?

 


Teemu Kerola 19.03.2004 14:59