Advertisement
Eeems

Untitled

Jun 11th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. Interrupt based.
  2. Everybody gets equal time to run unless one thread ( ie: a game ) requests it all.
  3. Shifts through the table in round-robin ( no process takes precedent ).
  4. Threads can end their turn early by sending a signal to another thread.
  5. Threads have states, these are:
  6. 0 - Null - no thread in this part of the table.
  7. 1 - Zombie - terminated but remains loaded in the process table.
  8. 2 - Stopped - process has ended and is ready to be removed.
  9. 3 - Running - Is currently processing. Could have received signal or just be straight out running.
  10. 4 - Interruptable - Waiting for signal
  11. 5 - Uninterruptable - Waiting for the hardware status to change
  12. Each thread has it's own stack and registers including the shadow registers.
  13. Signals are a 8-bit value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement