Add the rest of university notes
This commit is contained in:
366 files changed
+9844
-110
No files matched your search
@@ -26,7 +26,7 @@ The type of algorithm used by the scheduler is influenced by the type of operati
|
||||
- Invoked very frequency, hence must be fast
|
||||
- Usually called in response to *clock interrupts*, *I/O interrupts*, or *blocking system calls*
|
||||
|
||||

|
||||

|
||||
|
||||
**Non-preemptive** processes are only interrupted voluntarily (e.g. I/O operation or "nice" system call `yield()`)
|
||||
>Windows 3.1 and DOS were non-preemptive
|
||||
@@ -67,7 +67,7 @@ Concept: a non-preemptive algorithm that operates as a strict queuing mechanism
|
||||
| Positional fairness | Favours long processes over short ones (think supermarket checkout) || |
|
||||
| Easy to implement | Could compromise resource utilisation |
|
||||
|
||||

|
||||

|
||||
|
||||
**Shortest job first**
|
||||
A non-preemptive algorithm that starts processes in order of ascending processing time using a provided estimate of the processing
|
||||
@@ -78,7 +78,7 @@ A non-preemptive algorithm that starts processes in order of ascending processin
|
||||
| - | Fairness and predictability are compromised |
|
||||
| - | Processing times need to be known in advanced |
|
||||
|
||||

|
||||

|
||||
|
||||
**Round Robin**
|
||||
A preemptive version of FCFS that focuses context switches at periodic intervals or time slices
|
||||
@@ -100,7 +100,7 @@ The length of the time slice must be carefully considered.
|
||||
>A small time slice (~ 1ms) gives a good response time.
|
||||
>A large time slice (~ 1000ms) gives a high throughput.
|
||||
|
||||

|
||||

|
||||
|
||||
**Priority Queue**
|
||||
A preemptive algorithm that schedules processes by priority
|
||||
@@ -115,10 +115,10 @@ A preemptive algorithm that schedules processes by priority
|
||||
Low priority starvation only happens when a static priority level is used.
|
||||
You could give higher priority processes a larger time slice to improve efficiency
|
||||
|
||||

|
||||

|
||||
|
||||
Exam Q 2013: Which algorithms above lead to starvation?
|
||||
>Shortest job first and highest priority first.
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
Reference in new issue
Block a user