Handout TIF204 Chapter 6 Process Scheduling 2016
An O verview
Operating System:
Abraham Silberschatz, Peter Baer Galvin, Greg Gagne, Oper a ting System
Concepts Essentia ls , 2012, 2th Edition, John Wiley & Sons. Inc.
1-1
Chapter 6 Part Two: Proces s Scheduling |
CPU scheduling is the basis of multiprogrammed operating
systems. By switching the CPU among processes, the operating
system can make the computer more productive.
This chapter, we introduce basic CPU-scheduling concepts and
present several CPU-scheduling algorithms.We also consider the
problem of selecting an algorithm for a particular system.
1
Chapter 6 Part Two: Proces s Scheduling |
Ch. 6: Process Scheduling
2
Ch. 6: Process Scheduling
Chapter Objectives.
Age nda.
• Basic Concept
• Scheduling Criteria
• Scheduling Algorithms
• To introduce CPU scheduling, which is the basis for multiprogrammed
operating systems.
• To describe various CPU-scheduling algorithms.
• To discuss evaluation criteria for selecting a CPU-scheduling algorithm for
a particular system.
• To examine the scheduling algorithms of several operating systems.
Chapter 6 Part Two: Proces s Scheduling |
3
Chapter 6 Part Two: Proces s Scheduling |
4
Basic Concept
Scheduling Criteria
• Mengapa penjadwalan proses dibutuhkan?
• Kriteria penjadwalan berhubungan dengan algoritma penjadwalan.
– single-processing system tida k efisien;
– memaksimalkan penggunaan CPU (CPU
utilization );
– efisiensi waktu eksekusi proses.
• Setiap algoritma penjadwalan CPU memiliki properti yang
berbeda-beda.
• Pemilihan algoritma yang digunakan didasarkan pada properti
yang dimiliki oleh beragam algoritma pemjadwalan CPU.
• Dibutuhkan suatu kriteria yang digunakan untuk pemilihan
algoritma penjadwalan CPU.
• Strategi penjadwalan yang digunakan:
– nonpreemtive scheduling ; dan
– preemtive scgeduling.
Chapter 6 Part Two: Proces s Scheduling |
5
Scheduling Criteria
6
Sche duling Algorithms
• Kriteria penjadwalan yang dimaksud adalah sebagai berikut:
–
–
–
–
–
Chapter 6 Part Two: Proces s Scheduling |
First-Come, First-Serve (FCFS) Scheduling.
CPU utilization.
Throughput.
Turnaround time.
Waiting time.
Response time.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
7
Chapter 6 Part Two: Proces s Scheduling |
8
Scheduling Algorithms
Sche duling Algorithms
Shortest-Job-First (SJF) Scheduling.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
Prediction of the Length of the Next
CPU Burst.
9
Chapter 6 Part Two: Proces s Scheduling |
Scheduling Algorithms
Shortest-Remaining-Job-First (SRJF) Scheduling.
Sche duling Algorithms
Priority Scheduling.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
10
• Hitung rata-rata waktu tunggu setiap proses?
11
Chapter 6 Part Two: Proces s Scheduling |
12
Scheduling Algorithms
Operating System:
Round-Robin Scheduling.
Abraham Silberschatz, Peter Baer Galvin, Greg Gagne, Oper a ting System
Concepts Essentia ls , 2012, 2th Edition, John Wiley & Sons. Inc.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
13
1-14
Chapter 6 Part Two: Proces s Scheduling |
14
Operating System:
Abraham Silberschatz, Peter Baer Galvin, Greg Gagne, Oper a ting System
Concepts Essentia ls , 2012, 2th Edition, John Wiley & Sons. Inc.
1-1
Chapter 6 Part Two: Proces s Scheduling |
CPU scheduling is the basis of multiprogrammed operating
systems. By switching the CPU among processes, the operating
system can make the computer more productive.
This chapter, we introduce basic CPU-scheduling concepts and
present several CPU-scheduling algorithms.We also consider the
problem of selecting an algorithm for a particular system.
1
Chapter 6 Part Two: Proces s Scheduling |
Ch. 6: Process Scheduling
2
Ch. 6: Process Scheduling
Chapter Objectives.
Age nda.
• Basic Concept
• Scheduling Criteria
• Scheduling Algorithms
• To introduce CPU scheduling, which is the basis for multiprogrammed
operating systems.
• To describe various CPU-scheduling algorithms.
• To discuss evaluation criteria for selecting a CPU-scheduling algorithm for
a particular system.
• To examine the scheduling algorithms of several operating systems.
Chapter 6 Part Two: Proces s Scheduling |
3
Chapter 6 Part Two: Proces s Scheduling |
4
Basic Concept
Scheduling Criteria
• Mengapa penjadwalan proses dibutuhkan?
• Kriteria penjadwalan berhubungan dengan algoritma penjadwalan.
– single-processing system tida k efisien;
– memaksimalkan penggunaan CPU (CPU
utilization );
– efisiensi waktu eksekusi proses.
• Setiap algoritma penjadwalan CPU memiliki properti yang
berbeda-beda.
• Pemilihan algoritma yang digunakan didasarkan pada properti
yang dimiliki oleh beragam algoritma pemjadwalan CPU.
• Dibutuhkan suatu kriteria yang digunakan untuk pemilihan
algoritma penjadwalan CPU.
• Strategi penjadwalan yang digunakan:
– nonpreemtive scheduling ; dan
– preemtive scgeduling.
Chapter 6 Part Two: Proces s Scheduling |
5
Scheduling Criteria
6
Sche duling Algorithms
• Kriteria penjadwalan yang dimaksud adalah sebagai berikut:
–
–
–
–
–
Chapter 6 Part Two: Proces s Scheduling |
First-Come, First-Serve (FCFS) Scheduling.
CPU utilization.
Throughput.
Turnaround time.
Waiting time.
Response time.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
7
Chapter 6 Part Two: Proces s Scheduling |
8
Scheduling Algorithms
Sche duling Algorithms
Shortest-Job-First (SJF) Scheduling.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
Prediction of the Length of the Next
CPU Burst.
9
Chapter 6 Part Two: Proces s Scheduling |
Scheduling Algorithms
Shortest-Remaining-Job-First (SRJF) Scheduling.
Sche duling Algorithms
Priority Scheduling.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
10
• Hitung rata-rata waktu tunggu setiap proses?
11
Chapter 6 Part Two: Proces s Scheduling |
12
Scheduling Algorithms
Operating System:
Round-Robin Scheduling.
Abraham Silberschatz, Peter Baer Galvin, Greg Gagne, Oper a ting System
Concepts Essentia ls , 2012, 2th Edition, John Wiley & Sons. Inc.
• Hitung rata-rata waktu tunggu setiap proses?
Chapter 6 Part Two: Proces s Scheduling |
13
1-14
Chapter 6 Part Two: Proces s Scheduling |
14