SlideShare a Scribd company logo
1 of 31
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

Introduction to Computer Softwares
Introduction to Computer SoftwaresIntroduction to Computer Softwares
Introduction to Computer SoftwaresNaresh Dubey
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)Sohaib Danish
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)Vaibhav Bajaj
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computerlina hajjar
 
CS9222 Advanced Operating System
CS9222 Advanced Operating SystemCS9222 Advanced Operating System
CS9222 Advanced Operating SystemKathirvel Ayyaswamy
 
Chapter01Introducing Hardware
Chapter01Introducing HardwareChapter01Introducing Hardware
Chapter01Introducing HardwarePatty Ramsey
 
Disk operating system
Disk operating systemDisk operating system
Disk operating systemRaza Jaan
 
Computer Parts & Functions.pdf
Computer Parts & Functions.pdfComputer Parts & Functions.pdf
Computer Parts & Functions.pdfPatrickSerrano10
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating SystemsJohn Cutajar
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionAnkonGopalBanik
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating SystemsAkshay Kurup
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsDamian T. Gordon
 
Computer components
Computer componentsComputer components
Computer componentsAva Meek
 

What's hot (20)

Introduction to Computer Softwares
Introduction to Computer SoftwaresIntroduction to Computer Softwares
Introduction to Computer Softwares
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
CS9222 Advanced Operating System
CS9222 Advanced Operating SystemCS9222 Advanced Operating System
CS9222 Advanced Operating System
 
Presentation On Operating system
Presentation On Operating systemPresentation On Operating system
Presentation On Operating system
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
Chapter01Introducing Hardware
Chapter01Introducing HardwareChapter01Introducing Hardware
Chapter01Introducing Hardware
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
Computer Parts & Functions.pdf
Computer Parts & Functions.pdfComputer Parts & Functions.pdf
Computer Parts & Functions.pdf
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating Systems
 
Evolution of os
Evolution of osEvolution of os
Evolution of os
 
Operating system
Operating systemOperating system
Operating system
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Computer components
Computer componentsComputer components
Computer components
 
Operating System
Operating SystemOperating System
Operating System
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 

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
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating SystemLuka M G
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1sphs
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - IntroductionWayne Jones Jnr
 
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
 
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 sysyemsJyoReddy9
 
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 - EngineeringYogesh Santhan
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationLM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationMani Deepak Choudhry
 
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 osRai University
 

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
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
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
 
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
 

More from DAVIS THOMAS

Business process reengineering
Business process reengineeringBusiness process reengineering
Business process reengineeringDAVIS THOMAS
 
Business process mapping
Business process mappingBusiness process mapping
Business process mappingDAVIS THOMAS
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process ReengineeringDAVIS THOMAS
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process ReengineeringDAVIS THOMAS
 
Business Process Reengineering
Business Process ReengineeringBusiness Process Reengineering
Business Process ReengineeringDAVIS THOMAS
 
Theory of utitltiy
Theory of utitltiyTheory of utitltiy
Theory of utitltiyDAVIS THOMAS
 
Economics of Business
Economics of BusinessEconomics of Business
Economics of BusinessDAVIS THOMAS
 
Managerial economics
Managerial economicsManagerial economics
Managerial economicsDAVIS 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

Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationBoston Institute of Analytics
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 

Recently uploaded (20)

Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project Presentation
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 

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.