Unit-1 OS Overview
Unit-1 OS Overview
Introduction
OS is a control program
Controls execution of programs to prevent errors and improper use of the
computer
What is an Operating System?
A program that acts as an agent between a user of a
computer and the computer hardware. The purpose of an
operating system is to provide a platform on which a user
can execute programs conveniently and efficiently.
Operating system goals: (ECE)
Efficiency: Use the computer hardware in an efficient
manner
Convenience: Make the computer system convenient to
use
Execute: solving user problems easier through user
programs
Note: The main goal of the Operating System is to make the
computer environment more convenient to use and the
Secondary goal is to use the resources most efficiently.
Why are Operating Systems Used?
Operating System handles the following responsibilities:
It controls all the computer resources.
It provides valuable services to user programs.
It coordinates the execution of user programs.
It provides resources for user programs.
It provides an interface (virtual machine) to the user.
It hides the complexity of software.
It supports multiple execution modes.
It monitors the execution of user programs to prevent errors.
Operating system functions
Memory Management: The operating system manages the
Primary Memory or Main Memory
Processor Management
Device Management
File Management
User Interface or Command Interpreter
Booting the Computer
Security
Operating system functions cont.
Services Provided by an Operating System
Program Execution
Handling Input/Output Operations
Manipulation of File System
Error Detection and Handling
Resource Allocation
Accounting
Information and Resource Protection
System Services
Operating-System Structure
A Single program OS
Multiprogramming OS
Time-sharing or Multitasking: Interactive computer system
Job Scheduling/CPU Scheduling
Storage Structure
Main memory – only large storage media that the CPU can
access directly
Random access
Typically volatile
Secondary storage – extension of main memory that
provides large nonvolatile storage capacity
Hard disks – rigid metal or glass platters covered with
magnetic recording material
Disk surface is logically divided into tracks, which are
subdivided into sectors
The disk controller determines the logical interaction
between the device and the computer
Storage Hierarchy