Operating systems
By : Dana Dia'a
Linux scheduling
In Linux, tasks are divided into classes and the processorchooses
the algorithm based on the priority assigned foreach class. The
aspects in which processorschedule tasks may be differentbased
on priority. The scheduling criteria, for example: Android is based
on Linux differs from Windows which is based on Linux, too, and
they all are differentfrom Linux-based servers.To determine the
next task to be running, the scheduler selects the highest priority in
the highest -priority scheduling class. In Linux, there are two
scheduling classes:default scheduling class; using completelyfair
scheduler(CFS), and a real-time scheduling class.
According to CFS scheduling algorithms, CPU process time is
divided upon tasks and the proportion is based on the nice value
(lower value is higher relative priority; which means higher
proportionof CPU processtime). Priority does not assign directly
by CFS scheduling; instead, time is recorded by the virtual-run
time.
Windows scheduling
Windows threads use a priority-based, preemptive scheduling.
Highest priority runnable thread always runs. Windows dispatcher
(handles the scheduler)gives control to the thread selected by the
short term scheduler, a dispatch will run a selected thread until it is
distracted by one of these condition: is preemptedby a higher-
priority thread, it terminates, its time quantum end, or blocking
system call (such as I/O) .
In Windows scheduling (dispatcher), when higher priority thread is
ready to run and need access,it preemptthe running lower
priority. Priorities are divided into two classes:the variable class
and the real-time class. The dispatcheruses a queue for each
scheduling priority and order the set of queues from the highest to
lowest until it finds a thread that is ready to run, if it doesn’tfind a
ready thread, it executes an idle thread. The priority for each
thread is based on both the priority class and its relative priority.
Solaris scheduler
Solaris uses six classes priority-based thread scheduling in which
each class is divided into different priorities and algorithms. The
default is time sharing; which alters priorities and assigns different
lengths time-slices dynamically by multilevel feedbackqueue
(inverse relationship; the higher the priority, the smaller the time-
slice and vice versa). The interactive processes -higherpriority
typically- gives a good response time. It uses a scheduling policy
as time-sharing but gives windowed-applications a higher priority.
The Solaris kernel is fully promotable, this means that all threads
to allow a higher priority thread to run. Threads in real-time class
are given the highest priority, guaranteed response time. In system
class, kernel processesare assigned to this class, and priorities
are static. In fixed and fair priority, no dynamic adjustment of
priorities. Solaris uses a dispatch table; this is used to assign a
new priority to a process intwo cases:time quantum expired
without blocking, process blockedbefore time quantum expired.

More Related Content

PPT
The Windows Scheduler
PPT
Consistency protocols
PPT
Client Centric Consistency Model
PPTX
Windows process scheduling presentation
PDF
Client-centric Consistency Models
PPTX
Replication in Distributed Systems
PPTX
Multi processor scheduling
PPT
10 Multicore 07
The Windows Scheduler
Consistency protocols
Client Centric Consistency Model
Windows process scheduling presentation
Client-centric Consistency Models
Replication in Distributed Systems
Multi processor scheduling
10 Multicore 07

What's hot (20)

PDF
Replication in the Wild
PPTX
Scope of parallelism
ODP
Virtual Distro Dispatcher - A costless distributed virtual environment from T...
PPTX
Superscalar & superpipeline processor
PPTX
Windows process-scheduling
PPT
Real-Time Scheduling Algorithms
PPT
OS Process and Thread Concepts
PDF
Processes and Processors in Distributed Systems
PPTX
Superscalar Architecture_AIUB
PPSX
Data Replication in Distributed System
PDF
Unit II - 2 - Operating System - Threads
PPT
Homework solution1
PPT
21 process scheduling alogorithm
PDF
Process coordination
PPT
Chapter 02
PPTX
Chapter 3 chapter reading task
PDF
Operating Systems 1 (7/12) - Threads
PDF
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
PDF
3 process management
PDF
An Overview of Distributed Debugging
Replication in the Wild
Scope of parallelism
Virtual Distro Dispatcher - A costless distributed virtual environment from T...
Superscalar & superpipeline processor
Windows process-scheduling
Real-Time Scheduling Algorithms
OS Process and Thread Concepts
Processes and Processors in Distributed Systems
Superscalar Architecture_AIUB
Data Replication in Distributed System
Unit II - 2 - Operating System - Threads
Homework solution1
21 process scheduling alogorithm
Process coordination
Chapter 02
Chapter 3 chapter reading task
Operating Systems 1 (7/12) - Threads
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
3 process management
An Overview of Distributed Debugging
Ad

Viewers also liked (11)

PDF
Deloitte uk-cpo-survey-2014
PDF
The passive Voice
DOC
orretre
DOCX
địa điểm bán đồng hồ casio dây da
PDF
KEEP IT SAFE FINAL IT Security A6 FINAL 2 (1)
PDF
5.ka2 general
PDF
DOCX
report-pankaj.docx2FIMAL
PPTX
Favorite places
DOCX
Testosterone làm nên đàn ông đích thực
PDF
conflict res pres
Deloitte uk-cpo-survey-2014
The passive Voice
orretre
địa điểm bán đồng hồ casio dây da
KEEP IT SAFE FINAL IT Security A6 FINAL 2 (1)
5.ka2 general
report-pankaj.docx2FIMAL
Favorite places
Testosterone làm nên đàn ông đích thực
conflict res pres
Ad

Similar to Os examples scheduling (20)

PDF
Scheduling
PPT
cpu scheduling in os
PPTX
Smarter Scheduling (Priorities, Preemptive Priority Scheduling, Lottery and S...
PPTX
Thread scheduling in Operating Systems
PPTX
Process scheduling
PPTX
Insider operating system
PDF
Linux Scheduler Latest_ viresh Kumar.pdf
PDF
Process Scheduler and Balancer in Linux Kernel
PPTX
Thread-Preemption-and-Preemptive-Task-Scheduling.pptx(3).pptx
PPT
cpu sechduling
PDF
Ch6 cpu scheduling
PPT
Scheduling
PDF
Operating Systems 1 (10/12) - Scheduling
PPT
06-scheduling.ppt including multiple CPUs
PPTX
Smarter Scheduling
PPT
Process scheduling linux
PPTX
Process scheduling in Light weight weight and Heavy weight processes.
PDF
CH06.pdf
PPT
Window scheduling algorithm
Scheduling
cpu scheduling in os
Smarter Scheduling (Priorities, Preemptive Priority Scheduling, Lottery and S...
Thread scheduling in Operating Systems
Process scheduling
Insider operating system
Linux Scheduler Latest_ viresh Kumar.pdf
Process Scheduler and Balancer in Linux Kernel
Thread-Preemption-and-Preemptive-Task-Scheduling.pptx(3).pptx
cpu sechduling
Ch6 cpu scheduling
Scheduling
Operating Systems 1 (10/12) - Scheduling
06-scheduling.ppt including multiple CPUs
Smarter Scheduling
Process scheduling linux
Process scheduling in Light weight weight and Heavy weight processes.
CH06.pdf
Window scheduling algorithm

More from Dana dia (6)

PPSX
types of computer cases
DOCX
summarize system analysis and design ch2
DOCX
system analysis and design chapter 1 Kendall & Kendall
DOCX
Multicore system
PPTX
Multimedia
PPTX
Tree data structure
types of computer cases
summarize system analysis and design ch2
system analysis and design chapter 1 Kendall & Kendall
Multicore system
Multimedia
Tree data structure

Os examples scheduling

  • 2. Linux scheduling In Linux, tasks are divided into classes and the processorchooses the algorithm based on the priority assigned foreach class. The aspects in which processorschedule tasks may be differentbased on priority. The scheduling criteria, for example: Android is based on Linux differs from Windows which is based on Linux, too, and they all are differentfrom Linux-based servers.To determine the next task to be running, the scheduler selects the highest priority in the highest -priority scheduling class. In Linux, there are two scheduling classes:default scheduling class; using completelyfair scheduler(CFS), and a real-time scheduling class. According to CFS scheduling algorithms, CPU process time is divided upon tasks and the proportion is based on the nice value (lower value is higher relative priority; which means higher proportionof CPU processtime). Priority does not assign directly by CFS scheduling; instead, time is recorded by the virtual-run time.
  • 3. Windows scheduling Windows threads use a priority-based, preemptive scheduling. Highest priority runnable thread always runs. Windows dispatcher (handles the scheduler)gives control to the thread selected by the short term scheduler, a dispatch will run a selected thread until it is distracted by one of these condition: is preemptedby a higher- priority thread, it terminates, its time quantum end, or blocking system call (such as I/O) . In Windows scheduling (dispatcher), when higher priority thread is ready to run and need access,it preemptthe running lower priority. Priorities are divided into two classes:the variable class and the real-time class. The dispatcheruses a queue for each scheduling priority and order the set of queues from the highest to lowest until it finds a thread that is ready to run, if it doesn’tfind a ready thread, it executes an idle thread. The priority for each thread is based on both the priority class and its relative priority.
  • 4. Solaris scheduler Solaris uses six classes priority-based thread scheduling in which each class is divided into different priorities and algorithms. The default is time sharing; which alters priorities and assigns different lengths time-slices dynamically by multilevel feedbackqueue (inverse relationship; the higher the priority, the smaller the time- slice and vice versa). The interactive processes -higherpriority typically- gives a good response time. It uses a scheduling policy as time-sharing but gives windowed-applications a higher priority. The Solaris kernel is fully promotable, this means that all threads to allow a higher priority thread to run. Threads in real-time class are given the highest priority, guaranteed response time. In system class, kernel processesare assigned to this class, and priorities are static. In fixed and fair priority, no dynamic adjustment of priorities. Solaris uses a dispatch table; this is used to assign a new priority to a process intwo cases:time quantum expired without blocking, process blockedbefore time quantum expired.