Operating System
Operating System
OPERATING SYSTEMS
1
Software
Software is a set of instructions, data or programs
used to operate computers and execute specific
tasks.
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.
5
Assembler
Is a translator program
machine language
7
Compiler
Is a translator program
machine language
execution
machine language
2. Syntax Analysis
10
Interpreter/Compiler – Basic Functions
12
Loader
Is a program that allocate memory and loads program into
13
Loader
Assemblers and compilers are used to convert source code to object code. The loader will
accept that object code, make it ready for execution, and helps to execute. Loader
2. Linking: It combines two or more separate object programs or modules and supplies
necessary information.
3. Relocation: It modifies the object program so that it can be loaded at an address different
from the location.
4. Loading: It brings the object program into the main memory for execution.
14
Loader Functions
15
Loader Functions
Linking: The linker resolves the symbolic reference code or data between the
object modules by allocating all of the user subroutine and library subroutine
library function. For example, in C language we have a printf() function. When the
program control goes to the line where the printf() is written, then the linker comes
into the picture and it links that line to the module where the actual implementation
and these address constants must be modified to fit the available space, this
can be done by loader and this is known as relocation. In order to allow the
instructions.
17
Loader Functions
into memory
18
Loader
19
Operating System & Its Functions
A program that acts as an intermediary between a user of a
computer and the computer hardware
21
Process Management
Process is a program in execution
22
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
27
File Management
Files are normally organized into directories to ease their use
28
File Management
OS is responsible for the following activities in connection
29
I/O System Management
One of the purposes of an operating system is to hide the
30
I/O System Management
The I/O subsystem consists of
31
Networking
communication network
32
Networking
The communication network design must consider message
33
Protection System
Various processes must be protected from one another’s
activities
operating system
34
Protection System
Protection is any mechanism for controlling the access of
computer system
35
Types Of Operating System
1. Batch Systems
36
1. Batch System
The operating system was always resident in memory
37
1. Batch System
38
1. Batch System
Batch processing was very popular in the 1970s. The jobs were executed in batches.
People used to have a single computer known as a mainframe. Users using batch
operating systems do not interact directly with the computer. Each user prepares their
job using an offline device like a punch card and submitting it to the computer operator.
Jobs with similar requirements are grouped and executed as a group to speed up
processing. Once the programmers have left their programs with the operator, they sort
the programs with similar needs into batches.
39
2. Multiprogrammed System
The operating system keeps several jobs in memory
simultaneously
When the job may have to wait for some task, the operating
40
2. Multiprogrammed System
41
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
42
3. Time-Sharing System
Memory
44
4. Multiprocessor Systems
Advantages
45
4. Multiprocessor Systems
Two configurations
computers that has strict time constraints for any job to be performed. It is employed
mostly in those systems in which the results of the computations are used to influence a
communicated to the computer with the help of some sensor used to monitor the event. The
sensor produces the signal that is interpreted by the operating system as an interrupt. On
receiving an interrupt, the operating system invokes a specific process or a set of processes
47
5. Real Time Systems
A real time system is used when rigid time requirements
flow of data
49
5. Real Time Systems
Two flavors
completed on time
2. Soft Real Time System – Critical task gets priority over other
50