SlideShare a Scribd company logo
FUNCTIONS OF OS
MODULE 1
FUNCTIONS OF OS
 Process management
 Memory management
 File management
 Device management
 Security management
 User interface
FILE MANAGEMENT
 Provides a hierarchical structure for
the entire data.
 Provides a set of commands to
perform various operations on the
file.
 The file manager
 Controls access to files.
 Supervises the creation, deletion, and
modification of files.
 Controls the naming of files.
 Supervises the storage of files.
 Responsible for archiving and
backups.
USER INTERFACE
 Provides 2 types of user interface
 CLI
 Provides an interactive terminal.
 User can communicate with the
system through the terminal.
 Commands are used to initiate a
program.
 GUI
 Provides users with pictures,
icons, buttons and dialog boxes.
 User sends instructions by moving
a pointer on the screen.
SECURITY MANAGEMENT
 Provides internal security to the
system .
 Can be provided by using
 User Authentication
 Back up of data
DEVICE MANAGEMENT
 Managing the various devices
connected to the system.
 OS communicates with the
hardware by using the
software called device driver.
 Spooling
 Refers to storing jobs in a
buffer, where a device can
access them when it is
ready.
 Provides a waiting station
for devices.
 Eg: Print spooling.
PROCESS MANAGEMENT
 Manages all processes that are running on a
computer.
 It is responsible for
 Process creation and deletion.
 Process suspension and resumption.
 Process scheduling
 Resource allocation
PROCESS STATE
 New
 The process is being created.
 Ready
 The process is waiting to be assigned
to a process.
 Running
 Instructions are being executed.
 Waiting
 The process is waiting for some
event to occur.
 Terminated
 The process has finished execution.
PROCESS CONTROL BLOCK (PCB)
 A data structure maintained by
the OS for each process
 It contains
 Process ID
 Process state
 Program counter
 CPU scheduling information
 I/O status information
CPU SCHEDULING
 Process of allocating CPU time among all processes.
 Scheduling can be performed with the help of
schedulers.
 For scheduling purposes, different queues are used.
 Job queue
 Set of all jobs in the system.
 Ready queue
 Set of all processes waiting for the CPU.
 Device queue
 Set of processes waiting for an I/O device.
CPU SCHEDULING QUEUES
CPU SCHEDULERS
 Long-term scheduler (job scheduler)
 Selects job from the job queue and loads it into the main
memory for execution.
 Short-term scheduler (CPU scheduler)
 Selects a process from the ready queue and allocates CPU to
it.
 Medium term scheduler
 Decides whether to introduce a process from running state
to a waiting state or a waiting state to the ready state.
CPU SCHEDULING
 CPU scheduling decisions may take place when a
process:
1. Switches from running to waiting state
2. Switches from running to ready state
3. Switches from waiting to ready
4. Terminates
 Conditions 1 & 4 comes under non-preemptive
scheduling.
 All other conditions come under preemptive
scheduling.
CPU SCHEDULING
 Non-preemptive scheduling
 Once the CPU has been allocated to a process, the
process keep the CPU until it release the CPU either by
terminating or by switching to waiting state.
 Preemptive scheduling
 Scheduler can remove a process from the running state
to the other state in order to allow other processes to
run.
PROCEDURES FOR CPU SCHEDULING
 First Come First Served (FCFS)
 Round Robin Scheduling
First Come First Served (FCFS)
 All processes are enter in a queue.
 New process arrived is placed at the end of the queue.
 Process at the start of the queue is dispatched to the
processor.
 Falls under non-preemptive scheduling.
 If a process takes a very long time to complete, then other
processes have to wait .
Round Robin Scheduling
 Processes are allocated CPU time on a turn basis.
 Each process is allocated a fixed time to use the CPU.
 The time is known as time slice or quantum period.
 Falls under preemptive scheduling.
DEADLOCK
DEADLOCK
 A set of blocked processes each
holding a resource and waiting to
acquire a resource held by another
process in the set.
DEADLOCK
 Various conditions are
o Mutual exclusion
 Only one process at a time can use a resource.
 Hold and wait
 A process holding at least one resource is waiting to acquire
additional resources held by other processes.
 No preemption
 A resource can be released only after that process has
completed its task.
 Circular wait
 There must be a circular chain of 2 or more processes where
each is waiting for a resource held by the next member of the
chain.
MEMORY MANAGEMENT
 The part of the OS that performs memory management is
known as Memory Manager.
 Memory Manager is responsible
 Keeping track of which parts of memory are currently
being used and by whom.
 Decide which processes are to be loaded into memory
when memory space becomes available.
 Allocate and de-allocate memory space as needed
MEMORY MANAGER
 The main task of Memory Manager is
 Memory Relocation
 Memory Protection and Sharing
MEMORY RELOCATION
 Swapping
 Moving a process temporarily out of memory to a backing
store and then brought back to memory for continued
execution.
MEMORY ALLOCATION
 OS allocates a portion of the primary memory to each
process for its own use.
 Methods used for memory allocation
 First Fit
 Allocate the first hole that is big enough.
 Best Fit
 Allocate the smallest hole that is big enough.
 Worse Fit
 Allocate the largest hole.
MEMORY ALLOCATION
Fragmentation
Process of splitting the primary
memory into segments as the
memory is allocated and de-
allocated.
PAGING
 A memory management scheme that allows processes
to be stored non-contiguously in memory.
 Physical memory is divided into fixed sized blocks
called page frames.
 Logical memory is divided into fixed sized blocks
called pages.
 When a program is loaded into memory, each page is
loaded into a page frame and the frame can be residing
anywhere in the memory.
 OS maintains a page table for keeping track of the
pages of the process.
PAGING
 Logical address is divided into 2 parts
 Page number (p)
 Page Offset (d)
 To map the logical address to physical address in memory a
mapping table called page table is used.
 To map a given logical address to a physical address, Os
first extracts the page no and offset.
 If the page no is valid, the system uses page no to find the
corresponding page frame no in the page table.
 The page frame no is attached to the page offset to form
the physical address in memory
PAGING
CPU p d
page table
f
f d
physical
memory
Page No
VIRTUAL MEMORY
 A memory larger than the physical memory placed on
the hard disk.
 Data is stored on the VM and can be loaded into main
memory whenever needed.
 The process of swapping pages from VM to main
memory is known as page –in or swap-in.
 In VM systems, the page table of each process stores
an additional bit to identify the location of the page.
 If the bit is 1, the page is in the main memory
otherwise in the virtual memory.
VIRTUAL MEMORY
 Wherever a page reference is made, the Os checks the
page table for that page.
 If the page is not in the main memory, a page fault
occurs and control is passed to the page fault routine
in the Os.
 Page fault routine checks whether the virtual address
of that page is valid or not.
 If it is valid, locates the free frame in the memory and
allocate the process.
 If it is not valid, it terminates the process.
EMBEDDED SOFTWARE
 A software written to control machines or devices.

More Related Content

What's hot

Operating Systems
Operating SystemsOperating Systems
Operating Systems
Mohamed Loey
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its ComponentsMahmuda Rahman
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating SystemLuka M G
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
subhsikha
 
Operating system presentation
Operating system presentationOperating system presentation
Operating system presentation
Sonu Vishwakarma
 
History of operating systems
History of operating systemsHistory of operating systems
History of operating systems
Afrasiyab Haider
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
vampugani
 
Computer software
Computer  softwareComputer  software
Computer software
juna luna
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its functionNikhi Jain
 
Windows operating system
Windows operating systemWindows operating system
Windows operating system
Leah Gonzales
 
Future operating system
Future operating systemFuture operating system
Future operating system
Estiak Khan
 
Windows Basic
Windows BasicWindows Basic
Windows Basic
Jack Frost
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)Vaibhav Bajaj
 
Disk management
Disk managementDisk management
Disk management
Agnas Jasmine
 
Operating System - Microsoft Windows 10
Operating System - Microsoft Windows 10 Operating System - Microsoft Windows 10
Operating System - Microsoft Windows 10
Ruchika Sawant
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
Yanne Evangelista
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
Dasun Hegoda
 
Software components
Software componentsSoftware components
Software components
Amir_Mukhtar
 
What is Kernel, basic idea of kernel
What is Kernel, basic idea of kernelWhat is Kernel, basic idea of kernel
What is Kernel, basic idea of kernel
Neel Parikh
 

What's hot (20)

Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its Components
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Operating system presentation
Operating system presentationOperating system presentation
Operating system presentation
 
History of operating systems
History of operating systemsHistory of operating systems
History of operating systems
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Computer software
Computer  softwareComputer  software
Computer software
 
System software vs application software
System software vs application softwareSystem software vs application software
System software vs application software
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
Windows operating system
Windows operating systemWindows operating system
Windows operating system
 
Future operating system
Future operating systemFuture operating system
Future operating system
 
Windows Basic
Windows BasicWindows Basic
Windows Basic
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Disk management
Disk managementDisk management
Disk management
 
Operating System - Microsoft Windows 10
Operating System - Microsoft Windows 10 Operating System - Microsoft Windows 10
Operating System - Microsoft Windows 10
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Software components
Software componentsSoftware components
Software components
 
What is Kernel, basic idea of kernel
What is Kernel, basic idea of kernelWhat is Kernel, basic idea of kernel
What is Kernel, basic idea of kernel
 

Similar to Functions of Operating Systems

OPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAOPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAMugabo Mkama
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1sphs
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapterssphs
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - IntroductionWayne Jones Jnr
 
Operating system
Operating systemOperating system
Operating systemmak120
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyems
JyoReddy9
 
OS ppt.pdf
OS ppt.pdfOS ppt.pdf
OS ppt.pdf
PavanKumarPNVS
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
Yogesh Santhan
 
Memory Management
Memory ManagementMemory Management
Memory Management
sangrampatil81
 
Processing management
Processing managementProcessing management
Processing management
Kateri Manglicmot
 
Chapter 5
Chapter 5Chapter 5
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
Rakibul Rakib
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationLM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
Mani Deepak Choudhry
 
Ch03- PROCESSES.ppt
Ch03- PROCESSES.pptCh03- PROCESSES.ppt
Ch03- PROCESSES.ppt
MeghaSharma474761
 
UNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdfUNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdf
AyushSharma651966
 
Mca ii os u-1 introduction to os
Mca  ii  os u-1 introduction to osMca  ii  os u-1 introduction to os
Mca ii os u-1 introduction to os
Rai University
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.ppt
gezaegebre1
 

Similar to Functions of Operating Systems (20)

OPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAOPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapters
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
Operating system
Operating systemOperating system
Operating system
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyems
 
OS ppt.pdf
OS ppt.pdfOS ppt.pdf
OS ppt.pdf
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Ch1
Ch1Ch1
Ch1
 
Processing management
Processing managementProcessing management
Processing management
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Os
OsOs
Os
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationLM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
 
Ch03- PROCESSES.ppt
Ch03- PROCESSES.pptCh03- PROCESSES.ppt
Ch03- PROCESSES.ppt
 
Ch1
Ch1Ch1
Ch1
 
UNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdfUNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdf
 
Mca ii os u-1 introduction to os
Mca  ii  os u-1 introduction to osMca  ii  os u-1 introduction to os
Mca ii os u-1 introduction to os
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.ppt
 

More from DAVIS THOMAS

Role of IT
Role of ITRole of IT
Role of IT
DAVIS THOMAS
 
Role of IT in BPR
Role of IT in BPRRole of IT in BPR
Role of IT in BPR
DAVIS THOMAS
 
Process mapping
Process mappingProcess mapping
Process mapping
DAVIS THOMAS
 
Business process reengineering
Business process reengineeringBusiness process reengineering
Business process reengineering
DAVIS THOMAS
 
Business process mapping
Business process mappingBusiness process mapping
Business process mapping
DAVIS THOMAS
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process Reengineering
DAVIS THOMAS
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process Reengineering
DAVIS THOMAS
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process Reengineering
DAVIS THOMAS
 
Theory of utitltiy
Theory of utitltiyTheory of utitltiy
Theory of utitltiy
DAVIS THOMAS
 
Public debt
Public debt Public debt
Public debt
DAVIS THOMAS
 
Rostow s theory
Rostow s theoryRostow s theory
Rostow s theory
DAVIS THOMAS
 
Protectionism
ProtectionismProtectionism
Protectionism
DAVIS THOMAS
 
Pricing methods
Pricing methods   Pricing methods
Pricing methods
DAVIS THOMAS
 
National income
National income  National income
National income
DAVIS THOMAS
 
Theory of Demand
Theory of DemandTheory of Demand
Theory of Demand
DAVIS THOMAS
 
Economics of Business
Economics of BusinessEconomics of Business
Economics of Business
DAVIS THOMAS
 
Market structure
Market structureMarket structure
Market structure
DAVIS THOMAS
 
Managerial economics
Managerial economicsManagerial economics
Managerial economics
DAVIS THOMAS
 
Is lm curve
Is  lm curve Is  lm curve
Is lm curve
DAVIS THOMAS
 
Foreign exchange rate determination
Foreign exchange rate determination Foreign exchange rate determination
Foreign exchange rate determination
DAVIS THOMAS
 

More from DAVIS THOMAS (20)

Role of IT
Role of ITRole of IT
Role of IT
 
Role of IT in BPR
Role of IT in BPRRole of IT in BPR
Role of IT in BPR
 
Process mapping
Process mappingProcess mapping
Process mapping
 
Business process reengineering
Business process reengineeringBusiness process reengineering
Business process reengineering
 
Business process mapping
Business process mappingBusiness process mapping
Business process mapping
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process Reengineering
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process Reengineering
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process Reengineering
 
Theory of utitltiy
Theory of utitltiyTheory of utitltiy
Theory of utitltiy
 
Public debt
Public debt Public debt
Public debt
 
Rostow s theory
Rostow s theoryRostow s theory
Rostow s theory
 
Protectionism
ProtectionismProtectionism
Protectionism
 
Pricing methods
Pricing methods   Pricing methods
Pricing methods
 
National income
National income  National income
National income
 
Theory of Demand
Theory of DemandTheory of Demand
Theory of Demand
 
Economics of Business
Economics of BusinessEconomics of Business
Economics of Business
 
Market structure
Market structureMarket structure
Market structure
 
Managerial economics
Managerial economicsManagerial economics
Managerial economics
 
Is lm curve
Is  lm curve Is  lm curve
Is lm curve
 
Foreign exchange rate determination
Foreign exchange rate determination Foreign exchange rate determination
Foreign exchange rate determination
 

Recently uploaded

The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 

Recently uploaded (20)

The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 

Functions of Operating Systems

  • 2. FUNCTIONS OF OS  Process management  Memory management  File management  Device management  Security management  User interface
  • 3. FILE MANAGEMENT  Provides a hierarchical structure for the entire data.  Provides a set of commands to perform various operations on the file.  The file manager  Controls access to files.  Supervises the creation, deletion, and modification of files.  Controls the naming of files.  Supervises the storage of files.  Responsible for archiving and backups.
  • 4. USER INTERFACE  Provides 2 types of user interface  CLI  Provides an interactive terminal.  User can communicate with the system through the terminal.  Commands are used to initiate a program.  GUI  Provides users with pictures, icons, buttons and dialog boxes.  User sends instructions by moving a pointer on the screen.
  • 5. SECURITY MANAGEMENT  Provides internal security to the system .  Can be provided by using  User Authentication  Back up of data
  • 6. DEVICE MANAGEMENT  Managing the various devices connected to the system.  OS communicates with the hardware by using the software called device driver.  Spooling  Refers to storing jobs in a buffer, where a device can access them when it is ready.  Provides a waiting station for devices.  Eg: Print spooling.
  • 7. PROCESS MANAGEMENT  Manages all processes that are running on a computer.  It is responsible for  Process creation and deletion.  Process suspension and resumption.  Process scheduling  Resource allocation
  • 8. PROCESS STATE  New  The process is being created.  Ready  The process is waiting to be assigned to a process.  Running  Instructions are being executed.  Waiting  The process is waiting for some event to occur.  Terminated  The process has finished execution.
  • 9. PROCESS CONTROL BLOCK (PCB)  A data structure maintained by the OS for each process  It contains  Process ID  Process state  Program counter  CPU scheduling information  I/O status information
  • 10. CPU SCHEDULING  Process of allocating CPU time among all processes.  Scheduling can be performed with the help of schedulers.  For scheduling purposes, different queues are used.  Job queue  Set of all jobs in the system.  Ready queue  Set of all processes waiting for the CPU.  Device queue  Set of processes waiting for an I/O device.
  • 12. CPU SCHEDULERS  Long-term scheduler (job scheduler)  Selects job from the job queue and loads it into the main memory for execution.  Short-term scheduler (CPU scheduler)  Selects a process from the ready queue and allocates CPU to it.  Medium term scheduler  Decides whether to introduce a process from running state to a waiting state or a waiting state to the ready state.
  • 13. CPU SCHEDULING  CPU scheduling decisions may take place when a process: 1. Switches from running to waiting state 2. Switches from running to ready state 3. Switches from waiting to ready 4. Terminates  Conditions 1 & 4 comes under non-preemptive scheduling.  All other conditions come under preemptive scheduling.
  • 14. CPU SCHEDULING  Non-preemptive scheduling  Once the CPU has been allocated to a process, the process keep the CPU until it release the CPU either by terminating or by switching to waiting state.  Preemptive scheduling  Scheduler can remove a process from the running state to the other state in order to allow other processes to run.
  • 15. PROCEDURES FOR CPU SCHEDULING  First Come First Served (FCFS)  Round Robin Scheduling
  • 16. First Come First Served (FCFS)  All processes are enter in a queue.  New process arrived is placed at the end of the queue.  Process at the start of the queue is dispatched to the processor.  Falls under non-preemptive scheduling.  If a process takes a very long time to complete, then other processes have to wait .
  • 17. Round Robin Scheduling  Processes are allocated CPU time on a turn basis.  Each process is allocated a fixed time to use the CPU.  The time is known as time slice or quantum period.  Falls under preemptive scheduling.
  • 19. DEADLOCK  A set of blocked processes each holding a resource and waiting to acquire a resource held by another process in the set.
  • 20. DEADLOCK  Various conditions are o Mutual exclusion  Only one process at a time can use a resource.  Hold and wait  A process holding at least one resource is waiting to acquire additional resources held by other processes.  No preemption  A resource can be released only after that process has completed its task.  Circular wait  There must be a circular chain of 2 or more processes where each is waiting for a resource held by the next member of the chain.
  • 21. MEMORY MANAGEMENT  The part of the OS that performs memory management is known as Memory Manager.  Memory Manager is responsible  Keeping track of which parts of memory are currently being used and by whom.  Decide which processes are to be loaded into memory when memory space becomes available.  Allocate and de-allocate memory space as needed
  • 22. MEMORY MANAGER  The main task of Memory Manager is  Memory Relocation  Memory Protection and Sharing
  • 23. MEMORY RELOCATION  Swapping  Moving a process temporarily out of memory to a backing store and then brought back to memory for continued execution.
  • 24. MEMORY ALLOCATION  OS allocates a portion of the primary memory to each process for its own use.  Methods used for memory allocation  First Fit  Allocate the first hole that is big enough.  Best Fit  Allocate the smallest hole that is big enough.  Worse Fit  Allocate the largest hole.
  • 25. MEMORY ALLOCATION Fragmentation Process of splitting the primary memory into segments as the memory is allocated and de- allocated.
  • 26. PAGING  A memory management scheme that allows processes to be stored non-contiguously in memory.  Physical memory is divided into fixed sized blocks called page frames.  Logical memory is divided into fixed sized blocks called pages.  When a program is loaded into memory, each page is loaded into a page frame and the frame can be residing anywhere in the memory.  OS maintains a page table for keeping track of the pages of the process.
  • 27. PAGING  Logical address is divided into 2 parts  Page number (p)  Page Offset (d)  To map the logical address to physical address in memory a mapping table called page table is used.  To map a given logical address to a physical address, Os first extracts the page no and offset.  If the page no is valid, the system uses page no to find the corresponding page frame no in the page table.  The page frame no is attached to the page offset to form the physical address in memory
  • 28. PAGING CPU p d page table f f d physical memory Page No
  • 29. VIRTUAL MEMORY  A memory larger than the physical memory placed on the hard disk.  Data is stored on the VM and can be loaded into main memory whenever needed.  The process of swapping pages from VM to main memory is known as page –in or swap-in.  In VM systems, the page table of each process stores an additional bit to identify the location of the page.  If the bit is 1, the page is in the main memory otherwise in the virtual memory.
  • 30. VIRTUAL MEMORY  Wherever a page reference is made, the Os checks the page table for that page.  If the page is not in the main memory, a page fault occurs and control is passed to the page fault routine in the Os.  Page fault routine checks whether the virtual address of that page is valid or not.  If it is valid, locates the free frame in the memory and allocate the process.  If it is not valid, it terminates the process.
  • 31. EMBEDDED SOFTWARE  A software written to control machines or devices.