Osy Micro
Osy Micro
Osy Micro
A MICRO-PROJECT REPORT
ON:
CPU Scheduling
SUBMITTED BY :
Sudesh Sarode
Under Guidance
Prof. Shraddha Pardeshi Mam
P K TECHNICAL CAMPUS CHAKAN
Department of Diploma Computer
Engineering2022-2023
CERTIFICATE
A MINI-PROJECT WORK ENTITLED
SUBMITTED BY :
Sudesh Sarode
The report has been approved as it satisfies the academic requirements
in respect of micro-projectwork prescribed for the course.
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.
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.
Minimize
Waiting time: Waiting time is an amount that specific process needs
to wait in the ready queue.
Interval Timer
Timer interruption is a method that is closely related to preemption.
When a certain process gets the CPU allocation, a timer may be set to
a specified interval. Both timer interruption and preemption force a
process to return the CPU before its CPU burst is complete.
What is Dispatcher?
It is a module that provides control of the CPU to the process. The
Dispatcher should be fast so that it can run on every context switch.
Dispatch latency is the amount of time needed by the CPU scheduler
to stop one process and start another.
Context Switching
Switching to user mode
Moving to the correct location in the newly loaded program.
As the process enters the ready queue, its PCB (Process Control
Block) is linked with the tail of the queue. So, when CPU becomes
free, it should be assigned to the process at the beginning of the
queue.
Round-Robin Scheduling
Round robin is the oldest, simplest scheduling algorithm. The name of
this algorithm comes from the round-robin principle, where each
person gets an equal share of something in turn. It is mostly used for
scheduling algorithms in multitasking. This algorithm method helps for
starvation free execution of processes.