<aside> 📌 CPU-burst Time의 분포, Schedulling Algorithms, Round Robin(RR), Multilevel Queue, Multilevel Feedback Queue, Multi-Processor Scheduling, Real-time Scheduling, Example of Non-Preemptive SJF, Thread Scheduling, Algorithm Evaluation
</aside>
time-sharing 시스템에서 Interactive job 의 응답 시간이 굉장히 길어짐 → 썩 좋은 스케줄링 방법은 아님
Example
Process | Burst Time |
---|---|
P1 | 24 |
P2 | 3 |
P3 | 3 |
프로세스의 도착 순서: P1, P2, P3
Process | Waiting Time | Response Time | Turnaround Time |
---|---|---|---|
P1 | 0 | 0 | 24 |
P2 | 24 | 24 | 27 |
P3 | 27 | 27 | 30 |
프로세스의 도착 순서: P2, P3, P1
Process | Waiting Time | Response Time | Turnaround Time |
---|---|---|---|
P1 | 6 | 6 | 30 |
P2 | 0 | 0 | 3 |
P3 | 3 | 3 | 6 |
각 프로세스의 다음번 CPU burst time을 가지고 스케줄링에 활용
CPU burst time이 가장 짧은 프로세스를 제일 먼저 스케줄
Two schemes:
SJF is optimal → Preemtive 버전에 대해 얘기하는 것
문제점
Example
Process | Arrival Time | Burst Time |
---|---|---|
P1 | 0 | 7 |
P2 | 2 | 4 |
P3 | 4 | 1 |
P4 | 5 | 4 |
Nonpreemptive
Process | Waiting Time | Response Time | Turnaround Time |
---|---|---|---|
P1 | 0 | 0 | 7 |
P2 | 6 | 6 | 12 |
P3 | 3 | 3 | 8 |
P4 | 7 | 7 | 16 |
Preemptive
Process | Waiting Time | Response Time | Turnaround Time |
---|---|---|---|
P1 | 9 | 0 | 16 |
P2 | 1 | 0 | 9 |
P3 | 0 | 0 | 1 |
P4 | 2 | 2 | 2 |