SlideShare a Scribd company logo
Operating Systems
Lecture 5
Operating systems
Operating systems
Components of OS
• Shell Vs Kernel
• Components of kernel
• File manager
• Device drivers
• Memory manager
• Scheduler
• Dispatcher
File Manager
• File manager maintains records of all the files stored in mass storage,
including where each file is located, which users are allowed to access the
various files, and which portions of mass storage are available for new files
or extensions to existing files
• Any access to a file by other software units is obtained at the discretion of
the file manager
• Folder, directory, sub-directory, directory path
Device Drivers
• Device drivers which are the software units that communicate with the
controllers (or at times, directly with peripheral devices) to carry out
operations on the peripheral devices attached to the machine
• Each device driver is uniquely designed for its particular type of device
• Control Panel  System  Device Manager
Memory Manager
• The memory manager coordinates the use of the computer’s main memory
for various programs
• Single task vs multitasking
• Memory areas no longer occupied
• Scenario : the total main memory space required exceeds the space actually
available in the computer.
• Solution: Paging, Virtual Memory
Scheduler
• Program vs Process
• The activity of executing a program under the control of the operating system is known as a
Process
• Associated with a process is the current status of the activity, called the Process state
• To keep track of all the processes, the Scheduler maintains a block of information in main
memory called the Process table
• Process states : Running, Runnable in Memory (Ready) , Runnable Swapped, Sleeping in memory
(Waiting), Sleeping swapped
• Threads
Scheduler
• The scheduler maintains a record of the processes present in the computer
system, introduces new processes to this pool, and removes completed
processes from the pool. Thus when a user requests the execution of an
application, it is the scheduler that adds the execution of that application to
the pool of current processes
• Process table
Dispatcher
• The dispatcher is the component
of the kernel that oversees the
execution of the scheduled
processes by multiprogramming
• Time slice
• Process switch (context switch)
• Interrupt
Scheduling Algorithms
• First In First Out (FIFO)
• Shortest Job First (SJF)
• Shortest Remaining Job First (SRJF)
• Round Robin (RR)
• Priority based
• Multilevel queues
• Multilevel feedback queues
Semaphores
• Print example with set and clear state
• Issue with Flag system
• Disable interrupt instruction and enable interrupt instruction
• Test and set
• A properly implemented flag, as just described, is called a semaphore
• Critical region, mutual exclusion
Deadlocks
Deadlock conditions
1. mutual exclusion, i.e. the resources involved can only be accessed by one
process at a time
2. hold and wait, a process can keep access to a resource while it waits for
another resource to be freed
3. no pre-emption, i.e. the operating system will not force a process to release
a resource once it has obtained access
4. circular wait, i.e. there is a circular chain of (two or more) processes that
wait for each other
Deadlock Solutions
• Deadlock detection and correction
• Deadlock avoidance
• Spooling

More Related Content

PPTX
Processes and operating systems
PPTX
Lecture 2 process
PPTX
Process in operating system
PPTX
Process concept
PDF
Operating Systems 1 (6/12) - Processes
PPTX
Process Control Block & Threads and Their Management
PDF
OS - Process Concepts
Processes and operating systems
Lecture 2 process
Process in operating system
Process concept
Operating Systems 1 (6/12) - Processes
Process Control Block & Threads and Their Management
OS - Process Concepts

What's hot (20)

PPTX
Basic concept of process
PPTX
Process state in OS
PPTX
Processing management
PPT
OS Chapter03
PPTX
Lecture 5 process concept
PPTX
Real time operating system
PPT
水晶礦脈
PPTX
Operating system 28 fundamental of scheduling
PPTX
Operating system - Process and its concepts
PPTX
Operating Systems - Processor Management
PPT
12 process control blocks
PPTX
Os presentation process
PPTX
MULTILEVEL QUEUE SCHEDULING
PPTX
Processor management
DOC
Lesson 7 Process Control Block
PDF
Operating Systems 1 (5/12) - Architectures (Unix)
PPT
08 operating system support
PPTX
Operating System Introduction - Definition, Working, Components
PPTX
Os unit 3 , process management
Basic concept of process
Process state in OS
Processing management
OS Chapter03
Lecture 5 process concept
Real time operating system
水晶礦脈
Operating system 28 fundamental of scheduling
Operating system - Process and its concepts
Operating Systems - Processor Management
12 process control blocks
Os presentation process
MULTILEVEL QUEUE SCHEDULING
Processor management
Lesson 7 Process Control Block
Operating Systems 1 (5/12) - Architectures (Unix)
08 operating system support
Operating System Introduction - Definition, Working, Components
Os unit 3 , process management
Ad

Similar to Operating systems (20)

PPTX
How Operating system works.
PPTX
Operating systems (For CBSE School Students)
PPTX
introduction to operating systems and services.pptx
PPT
chapter1.ppt
PPTX
UNIT-2-PROCESS MANAGEMENT in opeartive system.pptx
PPTX
CSE3120- Module1 part 1 v1.pptx
PPTX
opearating system notes mumbai university.pptx
PDF
Operating Systems PPT 1 (1).pdf
PDF
operating systems hybrid notes for computerscience.pdf
PDF
OS Content.pdf
PPTX
Operating Systems & Applications
PDF
Memory Management slides of operating system
PPT
operating system introduction and organization
PDF
Engg-0505-IT-Operating-Systems-2nd-year.pdf
PPTX
Os concepts 4 functions of os
PDF
Unit 1.1.pdfOperating_SystemOperating_System
PDF
OS ppt.pdf
PPTX
os unit 1 (2).pptx. introduction to operating systems
PDF
How Operating system works.
Operating systems (For CBSE School Students)
introduction to operating systems and services.pptx
chapter1.ppt
UNIT-2-PROCESS MANAGEMENT in opeartive system.pptx
CSE3120- Module1 part 1 v1.pptx
opearating system notes mumbai university.pptx
Operating Systems PPT 1 (1).pdf
operating systems hybrid notes for computerscience.pdf
OS Content.pdf
Operating Systems & Applications
Memory Management slides of operating system
operating system introduction and organization
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Os concepts 4 functions of os
Unit 1.1.pdfOperating_SystemOperating_System
OS ppt.pdf
os unit 1 (2).pptx. introduction to operating systems
Ad

More from Saqib Shehzad (20)

PPTX
destinyتقدیر اور ایمانیات - مسئلہ جبر و قدر
PDF
خاکہ برائے درسِ مختصر البخاری۔ کتاب العلم 20.pdf
PPTX
Security
PPTX
wireless networks
PPTX
wireless networks
PPTX
Wireless networks
PPTX
Multimedia networks
PPTX
Multimedia networks
PPTX
Multimedia networks
PPTX
Multimedia networks
PPTX
Multimedia continued
PPTX
Multimedia
PPTX
Usability Evaluation
PPTX
Prototype in HCI
PPTX
User centered Design
PPTX
PPTX
Social and organizational perspective in HCI
PPTX
Interaction styles
PPTX
Cognitive frameworks
PPTX
Cognition, information processing, perception and attention
destinyتقدیر اور ایمانیات - مسئلہ جبر و قدر
خاکہ برائے درسِ مختصر البخاری۔ کتاب العلم 20.pdf
Security
wireless networks
wireless networks
Wireless networks
Multimedia networks
Multimedia networks
Multimedia networks
Multimedia networks
Multimedia continued
Multimedia
Usability Evaluation
Prototype in HCI
User centered Design
Social and organizational perspective in HCI
Interaction styles
Cognitive frameworks
Cognition, information processing, perception and attention

Recently uploaded (20)

PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
advance database management system book.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
Introduction to Building Materials
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
My India Quiz Book_20210205121199924.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Computer Architecture Input Output Memory.pptx
PPTX
20th Century Theater, Methods, History.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Virtual and Augmented Reality in Current Scenario
LDMMIA Reiki Yoga Finals Review Spring Summer
advance database management system book.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Introduction to Building Materials
What if we spent less time fighting change, and more time building what’s rig...
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
My India Quiz Book_20210205121199924.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Computer Architecture Input Output Memory.pptx
20th Century Theater, Methods, History.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Indian roads congress 037 - 2012 Flexible pavement
History, Philosophy and sociology of education (1).pptx
AI-driven educational solutions for real-life interventions in the Philippine...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Virtual and Augmented Reality in Current Scenario

Operating systems

  • 4. Components of OS • Shell Vs Kernel • Components of kernel • File manager • Device drivers • Memory manager • Scheduler • Dispatcher
  • 5. File Manager • File manager maintains records of all the files stored in mass storage, including where each file is located, which users are allowed to access the various files, and which portions of mass storage are available for new files or extensions to existing files • Any access to a file by other software units is obtained at the discretion of the file manager • Folder, directory, sub-directory, directory path
  • 6. Device Drivers • Device drivers which are the software units that communicate with the controllers (or at times, directly with peripheral devices) to carry out operations on the peripheral devices attached to the machine • Each device driver is uniquely designed for its particular type of device • Control Panel  System  Device Manager
  • 7. Memory Manager • The memory manager coordinates the use of the computer’s main memory for various programs • Single task vs multitasking • Memory areas no longer occupied • Scenario : the total main memory space required exceeds the space actually available in the computer. • Solution: Paging, Virtual Memory
  • 8. Scheduler • Program vs Process • The activity of executing a program under the control of the operating system is known as a Process • Associated with a process is the current status of the activity, called the Process state • To keep track of all the processes, the Scheduler maintains a block of information in main memory called the Process table • Process states : Running, Runnable in Memory (Ready) , Runnable Swapped, Sleeping in memory (Waiting), Sleeping swapped • Threads
  • 9. Scheduler • The scheduler maintains a record of the processes present in the computer system, introduces new processes to this pool, and removes completed processes from the pool. Thus when a user requests the execution of an application, it is the scheduler that adds the execution of that application to the pool of current processes • Process table
  • 10. Dispatcher • The dispatcher is the component of the kernel that oversees the execution of the scheduled processes by multiprogramming • Time slice • Process switch (context switch) • Interrupt
  • 11. Scheduling Algorithms • First In First Out (FIFO) • Shortest Job First (SJF) • Shortest Remaining Job First (SRJF) • Round Robin (RR) • Priority based • Multilevel queues • Multilevel feedback queues
  • 12. Semaphores • Print example with set and clear state • Issue with Flag system • Disable interrupt instruction and enable interrupt instruction • Test and set • A properly implemented flag, as just described, is called a semaphore • Critical region, mutual exclusion
  • 14. Deadlock conditions 1. mutual exclusion, i.e. the resources involved can only be accessed by one process at a time 2. hold and wait, a process can keep access to a resource while it waits for another resource to be freed 3. no pre-emption, i.e. the operating system will not force a process to release a resource once it has obtained access 4. circular wait, i.e. there is a circular chain of (two or more) processes that wait for each other
  • 15. Deadlock Solutions • Deadlock detection and correction • Deadlock avoidance • Spooling

Editor's Notes

  • #3: Motherboard with no description
  • #4: Motherboard simple