SlideShare a Scribd company logo
Operating System Structure
1. Multi programming and multitasking are 2 types
2. Simple structure
3. Monolithic structure
4. Layered Structure
5. Micro kernels
6. Modules
Ms.C.Nithiya
Computer Science and Engineering
KIT-Kalaignarkarunanidhi Institute Of Technology
Simple Structure -- MS-DOS
īĩ Very old and it has Microsoft Disk os
īĩ Base is hardware, device drivers has access to
hardware.
īĩ Hardware can be accessed by all the above so
the interfaces are not well separated.
īĩ Application program can directly read and write
to hardware.
īĩ When user program fails causes entire system to
crash.
īĩ Not well protected, well structured and not good
structure.
īĩ Ms DOS was written on Intel 8088 does not
provide dual mode(security and protection) or
hardware protection.
MONOLITHIC STRUCTURE
īĩ Used by earlier UNIX OS
īĩ Kernel and system programs grouped,
below system call and above
hardware is kernel.
īĩ Everything packed in one level, too
many functions to maintain.
īĩ If there is a change need to modify
entire kernel(debug).
īĩ System difficult to maintain and
implement.
Layered Approach
īĩ Zero is hardware, Layer 1 to n is
user interface.
īĩ Broken down function into several
layers
īĩ Easy to implement and debug.
īĩ One layer has problem, if
Scheduling layer gives problem,
look at that layer and debug.
īĩ Which is top and which layer below
is main criteria.
īĩ Backing store is performed (disk ,
space used by VM) should be below
memory management layer.
īĩ Not very efficient compared to
other structures.
Microkernel System Structure
Application
Program
File
System
Device
Driver
Interprocess
Communication
memory
managment
CPU
scheduling
messages
messages
microkernel
hardware
user
mode
kernel
mode
Microkernel System Structure
īĩ Micro kernel is present instead of entire kernel system.
īĩ Remove all non essential components from kernel and implement as
system and user level programs.
īĩ Micro kernel provide core functionalities of kernel above to which
device drivers, file services, process service, virtual memory are
placed under user level.
īĩ Micro kernel provide communication between client program and
these services .
īĩ Client request for any service micro kernel gives access through
message passing, runs in user mode.
īĩ As function runs in User mode entire system does not get crashed.
īĩ Performance decrease as there is system overhead while passing
message all time.
Solaris Modular Approach
Modules
īĩ Object oriented techniques to create kernel.
īĩ Other function should be loaded to the kernel either at boot
time or run time
īĩ Kernel section has defined and protected interfaces , protect
from things don’t need to access.
īĩ More flexible than a layered system.
īĩ They are loaded dynamically directly into kernel.
CPU Scheduling
īĩ Assign time for doing a task
īĩ Switching CPU among process OS can make
computer productive.
īĩ Introduce CPU scheduling – Multi programmed
īĩ Which algorithm work better? Difference of
algorithm need to be known
īĩ In single processor one process run at time.
īĩ Any other must wait and rescheduled.
CPU SCHEDULING
īĩ A process is executed until it must wait
completion of I/o operation.
īĩ CPU sets idle when processor inside CPU uses I/o
operation and sits inside CPU unit.
īĩ CPU does no useful work so productivity gets
reduced.
īĩ CPU and I/o Burst cycles – Process execution
has CPU execution and I/o execution.
CPU Scheduling
īĩ When process is under CPU execution for some time it is CPU
Burst
īĩ CPU waits for I/o operation to complete is i/o burst
Process execution–
īĩ CPU burst
īĩ I/o Burst
īĩ CPU Burstâ€Ļ..
īĩ At final CPU burst system request to terminate execution.
ALTERNATE SEQUENCE
PRE-EMPTIVE AND NON-PREEMPTIVE
SCHEDULING
īĩ Ways in which scheduling takes place.
īĩ CPU SCHEDULER – When CPU is idle , os select
One of processes in ready queue , in a process p1,p2,p3,p4 â€Ļp3
is selected from set to place in ready queue to run.
īĩ Selection of process is done by Short-term scheduler(ready
queue to CPU through i/o operation.
īĩ DISPATCHER– CPU control is given to selected process.
PRE-EMPTIVE AND NON-PREEMPTIVE SCHEDULING
īĩ Time taken for dispatcher to stop one process and start another
running is Dispatch Latency
īĩ CPU scheduling decisions takes place under 4 categories.
īĩ Process state switches from Running (Already using CPU)to
Waiting state (I/o operation)
īĩ Interrupt occurs, Running ( Process hault, goes back to ready
to get CPU to complete) to Ready state
PRE-EMPTIVE AND NON-PREEMPTIVE
SCHEDULING
īĩ Waiting state(has any i/o request) to ready state(continue its
execution) when i/o operation occur.
īĩ When process terminates CPU assigns to another process.
īĩ Based on CPU Allocation, 1 & 4 considered as no choice
(CPU should be assigned )
īĩ 2 & 3 there is a choice process gets hault, CPU assigned to
new process or old one .
īĩ Scheduling under 1 &4 is Non preemptive.
īĩ Pre emptive , CPU can be taken away from process before it
completes its execution .
īĩ When higher priority process enters switching from non
preemptive to pre emptive occurs.
SCHEDULING CRITERIA
īĩ CPU utilization, Through put, Turn around time , waiting time,
Response time are 5 criteria need to be known before
scheduling.
īĩ CPU utilization – We need to keep the CPU as busy as
possible. CPU should not be idle.
īĩ Through put – One measure of work is calc as number of
processes that are completed per time unit
īĩ Turn around time – Sum of the periods spent waiting to get
into memory, waiting in ready queue, executing on CPU and
doing I/o. From submission to completion.
īĩ Waiting time – Sum of the period spent waiting in ready
queue. It does not depend on scheduling process but the length
of process is taken into account .
SCHEDULING CRITERIA
īĩ Response time – Time from the submission of
request until the first response is produced.
īĩ Time it takes to start responding not the time it
takes to output the response.
īĩ Turn around time is generally limited by the speed
of output time in fast system. So we go for
response time.
īĩ Video output – first it start processing and takes
time to give output.

More Related Content

PPT
Chapter 2 (Part 2)
rohassanie
 
PPTX
In computing, scheduling is the action .
nathansel1
 
PPTX
Operating System.pptx
VanshikaRajput33
 
PPTX
Os unit 3 , process management
Arnav Chowdhury
 
PPTX
52bf066dbfcc4d739fa99d255dba287a.pptx
11SnehlataGujar
 
PPTX
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
Mani Deepak Choudhry
 
PDF
Process management- This ppt contains all required information regarding oper...
ApurvaLaddha
 
PPTX
LM10,11,12 - CPU SCHEDULING algorithms and its processes
manideepakc
 
Chapter 2 (Part 2)
rohassanie
 
In computing, scheduling is the action .
nathansel1
 
Operating System.pptx
VanshikaRajput33
 
Os unit 3 , process management
Arnav Chowdhury
 
52bf066dbfcc4d739fa99d255dba287a.pptx
11SnehlataGujar
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
Mani Deepak Choudhry
 
Process management- This ppt contains all required information regarding oper...
ApurvaLaddha
 
LM10,11,12 - CPU SCHEDULING algorithms and its processes
manideepakc
 

Similar to Operating System.ppt (20)

PPTX
Lecture 2 Processes in operating systems.pptx
HarrisChikunya
 
PPTX
Process management system in operating system
VeereshDevakkalavar
 
PPTX
Process management in operating system, process creation, process sheduling
VeereshDevakkalavar
 
PPTX
Process Management
Aditya Chaudhari
 
DOCX
Process scheduling
lodhran-hayat
 
PPTX
Operating System Periodic Test 1 Answers.pptx
KashikSredharan
 
PPTX
Operating System Periodic test answers t
KashikSredharan
 
PPTX
Operating System Periodic Test 1 Answers
KashikSredharan
 
PPTX
PROCESS.pptx
DivyaKS18
 
PDF
OS-Process.pdf
Rakibul Rakib
 
PPTX
(CPU Scheduling) in operating systems.pptx
shujatssc
 
PDF
OPERATING SYSTEMS and types of operating system
muhammadsaleemdev0
 
PPTX
Process Management of Operating Systems.
hostnameharsh
 
PPTX
Process management1
muhammad Juman Dahar
 
DOCX
Unit 2 notes
sampledocs2012
 
PPT
Cp usched 2
nidsrajdev
 
DOC
OPERATING SYSTEM - SHORT NOTES
suthi
 
PDF
PB1MAT_TIF17 - Pertemuan 1-2ghfctrerdxt.pdf
Join Sigalingging
 
PPT
Operatingsystems lecture2
Gaurav Meena
 
PDF
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Lecture 2 Processes in operating systems.pptx
HarrisChikunya
 
Process management system in operating system
VeereshDevakkalavar
 
Process management in operating system, process creation, process sheduling
VeereshDevakkalavar
 
Process Management
Aditya Chaudhari
 
Process scheduling
lodhran-hayat
 
Operating System Periodic Test 1 Answers.pptx
KashikSredharan
 
Operating System Periodic test answers t
KashikSredharan
 
Operating System Periodic Test 1 Answers
KashikSredharan
 
PROCESS.pptx
DivyaKS18
 
OS-Process.pdf
Rakibul Rakib
 
(CPU Scheduling) in operating systems.pptx
shujatssc
 
OPERATING SYSTEMS and types of operating system
muhammadsaleemdev0
 
Process Management of Operating Systems.
hostnameharsh
 
Process management1
muhammad Juman Dahar
 
Unit 2 notes
sampledocs2012
 
Cp usched 2
nidsrajdev
 
OPERATING SYSTEM - SHORT NOTES
suthi
 
PB1MAT_TIF17 - Pertemuan 1-2ghfctrerdxt.pdf
Join Sigalingging
 
Operatingsystems lecture2
Gaurav Meena
 
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Ad

Recently uploaded (20)

PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PPTX
quantum computing transition from classical mechanics.pptx
gvlbcy
 
PDF
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
Online Cab Booking and Management System.pptx
diptipaneri80
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
quantum computing transition from classical mechanics.pptx
gvlbcy
 
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
Inventory management chapter in automation and robotics.
atisht0104
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
Online Cab Booking and Management System.pptx
diptipaneri80
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Ad

Operating System.ppt

  • 1. Operating System Structure 1. Multi programming and multitasking are 2 types 2. Simple structure 3. Monolithic structure 4. Layered Structure 5. Micro kernels 6. Modules Ms.C.Nithiya Computer Science and Engineering KIT-Kalaignarkarunanidhi Institute Of Technology
  • 2. Simple Structure -- MS-DOS īĩ Very old and it has Microsoft Disk os īĩ Base is hardware, device drivers has access to hardware. īĩ Hardware can be accessed by all the above so the interfaces are not well separated. īĩ Application program can directly read and write to hardware. īĩ When user program fails causes entire system to crash. īĩ Not well protected, well structured and not good structure. īĩ Ms DOS was written on Intel 8088 does not provide dual mode(security and protection) or hardware protection.
  • 3. MONOLITHIC STRUCTURE īĩ Used by earlier UNIX OS īĩ Kernel and system programs grouped, below system call and above hardware is kernel. īĩ Everything packed in one level, too many functions to maintain. īĩ If there is a change need to modify entire kernel(debug). īĩ System difficult to maintain and implement.
  • 4. Layered Approach īĩ Zero is hardware, Layer 1 to n is user interface. īĩ Broken down function into several layers īĩ Easy to implement and debug. īĩ One layer has problem, if Scheduling layer gives problem, look at that layer and debug. īĩ Which is top and which layer below is main criteria. īĩ Backing store is performed (disk , space used by VM) should be below memory management layer. īĩ Not very efficient compared to other structures.
  • 6. Microkernel System Structure īĩ Micro kernel is present instead of entire kernel system. īĩ Remove all non essential components from kernel and implement as system and user level programs. īĩ Micro kernel provide core functionalities of kernel above to which device drivers, file services, process service, virtual memory are placed under user level. īĩ Micro kernel provide communication between client program and these services . īĩ Client request for any service micro kernel gives access through message passing, runs in user mode. īĩ As function runs in User mode entire system does not get crashed. īĩ Performance decrease as there is system overhead while passing message all time.
  • 8. Modules īĩ Object oriented techniques to create kernel. īĩ Other function should be loaded to the kernel either at boot time or run time īĩ Kernel section has defined and protected interfaces , protect from things don’t need to access. īĩ More flexible than a layered system. īĩ They are loaded dynamically directly into kernel.
  • 9. CPU Scheduling īĩ Assign time for doing a task īĩ Switching CPU among process OS can make computer productive. īĩ Introduce CPU scheduling – Multi programmed īĩ Which algorithm work better? Difference of algorithm need to be known īĩ In single processor one process run at time. īĩ Any other must wait and rescheduled.
  • 10. CPU SCHEDULING īĩ A process is executed until it must wait completion of I/o operation. īĩ CPU sets idle when processor inside CPU uses I/o operation and sits inside CPU unit. īĩ CPU does no useful work so productivity gets reduced. īĩ CPU and I/o Burst cycles – Process execution has CPU execution and I/o execution.
  • 11. CPU Scheduling īĩ When process is under CPU execution for some time it is CPU Burst īĩ CPU waits for I/o operation to complete is i/o burst Process execution– īĩ CPU burst īĩ I/o Burst īĩ CPU Burstâ€Ļ.. īĩ At final CPU burst system request to terminate execution.
  • 13. PRE-EMPTIVE AND NON-PREEMPTIVE SCHEDULING īĩ Ways in which scheduling takes place. īĩ CPU SCHEDULER – When CPU is idle , os select One of processes in ready queue , in a process p1,p2,p3,p4 â€Ļp3 is selected from set to place in ready queue to run. īĩ Selection of process is done by Short-term scheduler(ready queue to CPU through i/o operation. īĩ DISPATCHER– CPU control is given to selected process.
  • 14. PRE-EMPTIVE AND NON-PREEMPTIVE SCHEDULING īĩ Time taken for dispatcher to stop one process and start another running is Dispatch Latency īĩ CPU scheduling decisions takes place under 4 categories. īĩ Process state switches from Running (Already using CPU)to Waiting state (I/o operation) īĩ Interrupt occurs, Running ( Process hault, goes back to ready to get CPU to complete) to Ready state
  • 15. PRE-EMPTIVE AND NON-PREEMPTIVE SCHEDULING īĩ Waiting state(has any i/o request) to ready state(continue its execution) when i/o operation occur. īĩ When process terminates CPU assigns to another process. īĩ Based on CPU Allocation, 1 & 4 considered as no choice (CPU should be assigned ) īĩ 2 & 3 there is a choice process gets hault, CPU assigned to new process or old one . īĩ Scheduling under 1 &4 is Non preemptive. īĩ Pre emptive , CPU can be taken away from process before it completes its execution . īĩ When higher priority process enters switching from non preemptive to pre emptive occurs.
  • 16. SCHEDULING CRITERIA īĩ CPU utilization, Through put, Turn around time , waiting time, Response time are 5 criteria need to be known before scheduling. īĩ CPU utilization – We need to keep the CPU as busy as possible. CPU should not be idle. īĩ Through put – One measure of work is calc as number of processes that are completed per time unit īĩ Turn around time – Sum of the periods spent waiting to get into memory, waiting in ready queue, executing on CPU and doing I/o. From submission to completion. īĩ Waiting time – Sum of the period spent waiting in ready queue. It does not depend on scheduling process but the length of process is taken into account .
  • 17. SCHEDULING CRITERIA īĩ Response time – Time from the submission of request until the first response is produced. īĩ Time it takes to start responding not the time it takes to output the response. īĩ Turn around time is generally limited by the speed of output time in fast system. So we go for response time. īĩ Video output – first it start processing and takes time to give output.