P2L4 Flashcards
UL Thread Data Structure
thread ID
UL registers
thread stack
PCB (for threaded process)
Virtual address mapping
Stack
Registers
setjmp and longjmp
useful for switching ULT contexts
Hard and Light Process State
Portions of PCB where hard does not change for individual threads and light is thread specific
hard process state
does not change from thread to thread (virtual address mappings)
light process state
specific to each thread (signal mask, sys call args)
Rationale for multiple PCB data structures
Scalability
overheads
performance
flexibility
Sun KLT Data Structures
Process
Lightweight Process
binding
associating ULT to a specific KLT
pinning
associating KLT with specific CPU
Adaptive Mutex
if critical section is short, spin (dont’ block)
for long critical sections default blocking behavior
death row
threads periodically destroyed by a reaper thread if not reused (performance gains)
interrupt
events generated externally by components other than the CPU
determined based on the physical platform
appear asynchronously
signal
events triggered by CPU and software running on it
determined based on the OS
synchronous or asynchronous
Interrupt handler table
Interrupts are defined by hardware
how they are handled is OS specific