operating system assignment
operating system assignment
Priority scheduling
Pre-emptive scheduling
Multiple queues
It is a scheduling algorithm in which the process having the smallest execution time is
choose for the next execution.The scheduling method can be preemptive or non- preemptive
it is significantly reduces the average waiting time for other process awaiting execution.
In non-preemptive scheduling,once the cpu cycle is allocated to process,the process hold it till
it reaches awaiting state or terminated
Preemptive
In preemptive short job first scheduling job are out into ready queue as they come.a process
with shortest burst time begins execution.if a process with even shorter burst time arrives,the
current process is removed or preempted from execution and the shorten job is allocated
CPU cycle
Advantages
It reduces the average waiting time over first come first serve algorithm
Short job first iss probably optimal with regard to average turn around time
It is appropriate for jobs running in batch where run times are known in advance
Short job first method gives the lowest average waiting time for specific process
Disadvantages
This short job first algorithm may cause very long turn around time or starvation
First come first serve is an operating system scheduling algorithm that automatically
execute queued requests and processors in order of their arrival
It is the easiest and simple CPU scheduling algorithms.in this type of algorithm,processes
which request the cpu first get the cpu allocation first ,this is managed with first come first
serve que
Disadvantages
Short processes that are at the back of the queue have to wait for long process at
the front finish
First come first serve is not an ideal technique for time sharing systems
In a round robin scheduling,each ready task run by turn only in a cyclic queue for
a limited time slice.this algorithm also offer starvation free execution of process
.
It is real time algorithm which respond to the event within a specific time limit
It does not face the issue of starvation of convey offered all jobs get a fair allocation
of cpu
This scheduling method doesn't depend upon burst time ,that is why it is
easly implemented on the system
If you only know the total number of processes on the run queue ,then you can
also assume the worst-case response for the same process
The processes with higher priority should be arrived out first, whereas jobs
with equal priorities are carried out on a round robin on first come first serve
basis depend upon memory requirements and time requirements
Types of priority scheduling algorithm
Preemptive scheduling
Non-preemptive scheduling
Preemptive scheduling
The task are mostly assigned with their priorities sometimes it is important to run a
task with a higher priority before another lower lower priority task,even if the lower
priority task is still running ,the lower priority task holds for some time and
assumes when the higher task finishes it's execution
Non-preemptive scheduling
In this type of scheduling,the cpu has been allocated to a specific process that's
keeps the cpu busy ,will release thee cou either by switching context or
terminating,it is the only method that can be used for various hardware platforms
If higer priority processes takes alot of cpu time then the lower the
priority processes may starve and will be postponed for an indefinite time
A process will be blocked when it is ready to run but to wait for the
cpu because some other process is running currently
All the time ,the lower the priority task hold for some time and
resumes when the higher priority task finishes it's execution
The process which has low priority need to wait for longer time
if some higher priority processes arrives continuously
It is flexible in nature
Explain the concept of ostrich algorithm
Ostrich algorithm