Operating Systems
Operating Systems
Q1. What is OS ?
OS means Operating system. Its a software component that manages
the hardware components of the systems. It act as an intermediary
between the user applications and the hardware of the systems.
It also ensures that all the hardware components are used efficiently
without any disruption. It provides an interface for users to interact
with the computer system.
(Hardware includes cpu,memory,i/o devices etc)
Kernel--core of the system that controls all the tasks of the system.
Goals of OS
Convenience
User-friendly
Efficiency , reliability and maintainability
1.Functions of Operating Systems?
User Interface
Memory Management
Process Management
Hardware Management
File System Management
Device management
Network Management
Security Management
Types :-
Long-Term Scheduler (Job Scheduler)
Medium-Term Scheduler
Short-Term Scheduler(CPU Scheduler)
SM
New
Termination
Long-Term Scheduler Short-Term Scheduler
Ready Running
Dispatch
State
State
Priority/Time CPU
RAM
Medium-Term s.
Waiting
State
Suspend
SM
Block
Dispatcher:- A dispatcher is a module that gives control of the CPU to the
process selected by the short-term scheduler.
Context Switching:- when context switching occurs , the Kernel saves the
context of the old process in its PCB and loads the saved context of new
process scheduled to run.
Scheduling Algorithms:
Questions on CPU Scheduling :-
1.https://mycareerwise.com/content/srtf-process-and-examples/content/
exam/gate/computer-science
2.https://www.geeksforgeeks.org/shortest-remaining-time-first-
preemptive-sjf-scheduling-algorithm/
3.https://www.gatevidyalay.com/round-robin-round-robin-scheduling-
examples/