Quiz #3

Question 1   Multiple Answer (1 points)
  Question: The following may be states of a process in a system with single-threaded processes. In a system with multithreaded processes, some of these no longer make much sense as applying to the entire process. Instead, they make more sense as applicable to individual threads. Which are these states?
 
    Ready (i.e., Runnable, not Running)
Suspended
Blocked
Running
 

Question 2   Multiple Choice (1 points)
  Question: Which of the following types of architecture does a symmetric multiprocessor belong to?
 
    SISD
SIMD
MISD
MIMD
 

Question 3   Multiple Choice (1 points)
  Question: Thread switching does not require kernel privileges, so thread management calls save the overhead of two context switches.
 
    user level thread
kernel level threads
 

Question 4   Multiple Choice (1 points)
  Question: Scheduling can be application specific.
 
    user level threads
kernel level threads
 

Question 5   Multiple Choice (1 points)
  Question: When a thread is blocked on an OS service call, the entire process is blocked.
 
    user level threads
kernel level threads
 

Question 6   Multiple Choice (1 points)
  Question: A process can speed up its execution by making use of more than one CPU.
 
    user level threads
kernel level threads
 

Question 7   Matching (1 points)
  Question: Match up the OS or API name with the closest description of the kind of thread model it supports.
 
   
 
  Match Question Items
  1. ULTs map many:many to KLTs, via LWPs
  2. ULTs map 1:1 to KLTs ; KLTs are process clones
  3. ULTs map 1:1 to KLTs; KLT's supported by micokernel
  4. ULT to KLT mapping is not specified
 
Answer Items
A. POSIX
B. Solaris 2
C. Linux
D. Windows 2000
 

Question 8   Multiple Answer (1 points)
  Question: In a system that supports multithreaded processes, which of the following are likely to be associated with an individual thread (i.e., different for different threads within the process)?
 
    Execution state (running, ready, etc.)
Saved context (when not running)
Virtual address space
Protections/permissions to access system resources
Execution stack
Set of accessible open files
 

Question 9   Multiple Answer (1 points)
  Question: Which of the following are situations where a process would be suspended (rather than blocked)?
 
    the system needs to allocate the memory of the process to another process
the process waits for a disk write operation to complete
a user is debugging the process, and stopped it from the console
the process is waiting for a child process to terminate