CSE 410 Assignment 4

Spring 2007

Due: In class, Friday 5/18/07

  1. (Silberschatz 3.1) Describe the differences among short-term, medium-term, and long-term scheduling.
  2. (Silberschatz 3.2) Describe the actions taken by a kernel to context-switch between processes.
  3. (Silberschatz 4.1) Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution.
  4. (Silberschatz 4.2) Describe the actions taken by a thread library to context switch between user-level threads.
  5. (Silberschatz 4.3) Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system?
  6. (Silberschatz 4.4) Which of the following components of program state are shared across threads in a multithreaded process?
    1. Register values
    2. Heap memory
    3. Global variables
    4. Stack memory