Homework 3

Out: Wednesday April 6

Reading

Due: Friday April 8

Read the text: Silberschatz Chapter 4

Exercises

Due: Monday April 11 at the start of class

4.x1. Describe two circumstances in which a multithreaded program using kernel threads would not perform better than a single-threaded solution, on a multi-processor system.

4.x2. What are two differences between user-level threads and kernel-level threads? How do the times for context switching compare? Describe a situation where kernel threads would perform better than user threads on a single-processor system.

4.x3. What resources are used when a thread is created? How do they differ from those used when a process is created?

4.x4. Which of the following components of a program state are shared across threads in a multithreaded process? Explain. (one sentence should suffice)
         a.) Register Values
         b.) Heap Memory
         c.) Global variables
         d.) Stack Memory

4.3, 4.5, 4.7