Purpose of An Operating System
Purpose of An Operating System
Operating System
Applications
Operating System
Resource Management
Question : What are resources ?
C.P.U
Memory
Input / Output devices
Memmory
Secondary Main
Memory Memory
(HDD) (RAM)
Multitasking
Multitasking in an operating system allows a user to
perform more than one task at a time.
Preemptive
Resources are allocated to a process for a limited time.
The process can be interrupted while it is running.
More flexible form of scheduling.
Non Preemptive
Once the resources are allocated to a process, the process retains
them until it has completed its burst time (amount of time
required by a process for executing on CPU).
The process cannot be interrupted while running (It must finish or
switch to waiting state).
More rigid form of scheduling.
State 1 : Ready
Description:
State 2 : Running
Description:
State 3 : Blocked
Description:
READY → RUNNING
RUNNING → READY
RUNNING → BLOCKED
Scheduler
High Level Scheduler: Decides which processes are to be loaded
from backing store into ready queue.
with SJB, the process requiring the least CPU time is executed first
Ready
Running
Interrupt Handling
Concept Of Paging
Rest of pages which are not present in main memory they are
stored in Hard drive.
Page Replacement
Page replacement occurs when a requested page is not in
memory (flag = 0). When paging in/out from memory, it is
necessary to consider how the computer can decide which
page(s) to replace to allow the requested page to be loaded.
When a new page is requested but it is not in memory a page
fault occurs.
Paging Segmentation