Module 3 CPU Process Scheduling
Module 3 CPU Process Scheduling
Prepared by:
MAC JOHN T. POBLETE
Faculty, Information Technology Department
Cavite State University Naic
Email: [email protected]
ITEC55 Platform Technologies Module 3 CPU Process Scheduling
Instructions:
1. Read carefully all instruction for each task before working on the requirements.
2. All questions related to requirements shall be coursed through email only. Replies will be sent
during office hours.
Pretest:
1. What is CPU scheduling?
2. What are the two kinds of CPU scheduling?
3. What are the different types of scheduling algorithm?
LET US LEARN!
CPU Scheduling
CPU Scheduling is a process of determining which process will own CPU for execution while another process
is on hold. The main task of CPU scheduling is to make sure that whenever the CPU remains idle, the OS at least
select one of the processes available in the ready queue for execution. The selection process will be carried out by the
CPU scheduler. It selects one of the processes in memory that are ready for execution.
Preemptive Scheduling. In Preemptive Scheduling, the tasks are mostly assigned with their priorities.
Sometimes it is important to run a task with a higher priority before another lower priority task, even if the lower priority
task is still running. The lower priority task holds for some time and resumes when the higher priority task finishes its
execution.
Some Algorithms that are based on preemptive scheduling are Round Robin Scheduling (RR), Shortest
Remaining Time First (SRTF), Priority (preemptive version) Scheduling, etc.
ITEC55 Platform Technologies Module 3 CPU Process Scheduling
Non-Preemptive Scheduling. In this type of scheduling method, the CPU has been allocated to a specific
process. The process that keeps the CPU busy will release the CPU either by switching context or terminating. It is the
only method that can be used for various hardware platforms. That’s because it doesn’t need special hardware (for
example, a timer) like preemptive scheduling.
Some Algorithms based on non-preemptive scheduling are: Shortest Job First (SJF basically non-preemptive)
Scheduling and Priority (non- preemptive version) Scheduling, etc.
Throughput. The number of processes that finish their execution per unit time is known Throughput. So,
when the CPU is busy executing the process, at that time, work is being done, and the work completed per unit time is
called Throughput.
Minimize
Waiting time. Waiting time is an amount that specific process needs to wait in the ready queue. Waiting Time
= Turn Around Time – Burst Time
Response time. It is an amount to time in which the request was submitted until the first response is produced.
Turnaround Time. Turnaround time is an amount of time to execute a specific process. It is the calculation
of the total time spent waiting to get into the memory, waiting in the queue and, executing on the CPU. The period
between the time of process submission to the completion time is the turnaround time. Turn Around Time = Completion
Time – Arrival Time
Post Test
In your own words, what is the importance of scheduling?
References
CPU Scheduling in Operating System | Studytonight. (n.d.). Studytonight.
https://www.studytonight.com/operating-system/cpu-scheduling
GeeksforGeeks. (2021, June 28). CPU Scheduling in Operating Systems.
https://www.geeksforgeeks.org/cpu-scheduling-in-operating-systems/
Operating System - Process Scheduling. (n.d.). Tutorialspoint.
https://www.tutorialspoint.com/operating_system/os_process_scheduling.htm
OS Scheduling Algorithms - javatpoint. (n.d.). Www.Javatpoint.Com.
https://www.javatpoint.com/os-scheduling-algorithms
Williams, L. (2021, October 6). CPU Scheduling Algorithms in Operating Systems. Guru99.
https://www.guru99.com/cpu-scheduling-algorithms.html