SlideShare una empresa de Scribd logo
1 de 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.

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Operating System
Operating SystemOperating System
Operating System
 
Cs8493 unit 3
Cs8493 unit 3Cs8493 unit 3
Cs8493 unit 3
 
An Introduction to Operating Systems
An Introduction to Operating SystemsAn Introduction to Operating Systems
An Introduction to Operating Systems
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
Operating system
Operating systemOperating system
Operating system
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Operating system
Operating systemOperating system
Operating system
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
 
Virtual Memory and Paging
Virtual Memory and PagingVirtual Memory and Paging
Virtual Memory and Paging
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
operating system structure
operating system structureoperating system structure
operating system structure
 
File system structure
File system structureFile system structure
File system structure
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System Structures
 
Types Of Operating Systems
Types Of Operating SystemsTypes Of Operating Systems
Types Of Operating Systems
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
 
Os ppt
Os pptOs ppt
Os ppt
 

Similar a 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
 
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
 
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.pptgezaegebre1
 

Similar a 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
 
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
 
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
 

Más de 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
 

Más de 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
 

Último

Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...amitlee9823
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...amitlee9823
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...amitlee9823
 

Último (20)

Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 

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.