Multi-tasking system
202308301358
Status: #idea
Tags: OS
Multi-tasking system
- Logical extension of multi-programming
- Uses time slice expiry
- CPU allots a maximum time, for which a job can continuously run
- Allows many users to use the computer simultaneously
Decision Points
- Job completion
- Process leaves for IO
- Arrival of a job (if CPU is idle)
- Time slice expiry
Example
Warning
Multi-tasking is overall slower than multi-programming, due to the overhead of context switching
Info
Linux has different time slices for different processes.
The length of the time slice is decided by the niceness, which ranges from
Info
Priority number usually ranges from
Info
Info