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