OS Unit-I - Operating System
OS Unit-I - Operating System
OPERATING SYSTEMS
1
Software
Software is a set of instructions, data or programs
used to operate computers and execute specific
tasks.
Software is a generic term used to refer to
applications and programs that run on a device.
The two main categories of software are
application software and system software
2
System Software
System software are designed to run a computer's
application programs and hardware.
System software coordinates the activities and
functions of the hardware and software.
It controls the operations of the hardware and
provides an environment for other softwares.
Eg: Operating system, translators, linker, loader,
text editor, debugger.
3
Application Software
Application software is a computer software
package that performs a specific function for a
user, or for another application.
An application can be self-contained, or it can be
a group of programs that run the application for
the user.
Examples: office suites, graphics software,
database management programs, web browsers,
word processors, image editors.
4
Translators
A translator is a program that converts source
code into machine code.
Any program written in a high-level
language/assembly language is known
as source code.
Computers cannot understand source code.
5
Assembler
Is a translator program
Assembles (Translates) assembly language program into
machine language
Depends up on machine architecture
7
Compiler
Is a translator program
machine language
execution
various tokens
2. Syntax Analysis
11
Loader Functions
Allocation: allocate space in memory for the programs
between them
12
Loader Functions
Relocation: Adjust all address dependent locations, such as
into memory
13
Loader
14
What is OS?
A program that acts as an intermediary
between a user of a computer and the
computer hardware
An is a program that manages the computer
hardware.
It also provides a basis for application
programs and acts as an intermediary
between the computer user and the computer
hardware.
15
Operating System & Its Functions
Functions of operating systems are:
1. Manages and Interacts with Computer Hardware
2. Resource management
3. Provides and Manages System Security
4. Provides the System Interface
16
Operating System
Functions
17
Process Management
Process is a program in execution
18
Process Management
OS is responsible for the following activities in connection
Reads & writes data from memory during the data fetch cycle
main memory
Main memory is the only large storage device that the CPU is
memory
It maps files onto physical media, and accesses these files via
23
File Management
Files are normally organized into directories to ease their use
24
File Management
OS is responsible for the following activities in connection
25
I/O System Management
One of the purposes of an operating system is to hide the
26
I/O System Management
The I/O subsystem consists of
27
Networking
A distributed system is a collection of processors that do not
communication network
28
Networking
The communication network design must consider message
29
Protection System
Various processes must be protected from one another’s
activities
operating system
30
Protection System
Protection is any mechanism for controlling the access of
computer system
31
Command Interpreter System
One of the most important systems programs for an operating
the kernel
32
Command Interpreter System
Other operating systems, such as MS-DOS and UNIX, treat the
34
1. Batch System
• The user has to submit a job (written on cards or tape) to
a computer operator.
• Then computer operator places a batch of several jobs on
an input device.
• Jobs are batched together by type of languages and
requirement.
• Then a special program, the monitor, manages the
execution of each program in the batch.
• The monitor is always in the main memory and available
for execution.
• Following are some disadvantages of this type of system :
• Zero interaction between user and computer.
• No mechanism to prioritize processes.
35
1. Batch System
36
2. Multiprogrammed System
The operating system keeps several jobs in memory
simultaneously
When the job may have to wait for some task, the operating
37
2. Multiprogrammed System
38
3. Time-Sharing System
The CPU executes multiple jobs by switching among them
The switches occur so frequently that the user can interact
with each program while it is running
A time shared operating system allows many users to share
the computer simultaneously
A time shared operating system uses CPU scheduling and
multiprogramming
Each user has at least one separate program in memory
39
4. Multiprocessor Systems
Multiprocessor systems have more than one processor in
close communication, sharing the computer bus, the clock,
and sometimes memory and peripheral devices.
Memory
40
4. Multiprocessor Systems
Advantages
41
4. Multiprocessor Systems
Two configurations
flow of data
completed on time
2. Soft Real Time System – Critical task gets priority over other
44