2.2 Introduction to Operating System
2.2 Introduction to Operating System
OPERATING SYSTEM
Introduction to
Operating System
Concepts The purpose of an operating system is
to provide an environment in which a
by user may execute programs.
A Computer system consists of Hardware, A Computer system consists of Hardware, System Programs and
Application Programs
System Programs and Application Programs
Users submit jobs to a central place where these jobs are collected
Time-Sharing Operating System a Time-Sharing
into Operating
batch, and subsequently placed on System
an input queue at the
computer where they will be run. The user has no interaction with
the job during its processing. The computer’s response time is the
Real-Time Operating System Real-Time
turnaround Operating
time- the time System
from submission of the job until
execution is complete, and the results are ready for return to the
person who submitted the job.
Spooling Spooling
Acronym of “Simultaneous Peripheral When there is a resource (like printer) to be
Operation On-Line”. accessed by two or more processes(or
Its a process of placing data in temporary devices), there spooling comes handy to
working area for another program to schedule the tasks. Data from each process
process. is put on the spool (print queue) and
E.g.: Print spooling and Mail spools etc. processed in FIFO(first in first out) manner.
Spooling MULTI PROGRAMMING
MULTI PROGRAMMING
Uniprogramming System
efficiency.
User job User program area
CPU
Main memory
Operating system
Job is allocated the
New CPU for execution Job
job Ready Running processing
Writing output data Job A
completed
Job B
Job C (Waiting for I/O completed Job must wait for I/O
Secondary disk storage CPU) Blocked completion
Execution in
progress
CPU
Different types of
Multiprogramming Operating Multi-processor
System
If a single CPU is insufficient for your
• Multitasking operating system computing purposes, you may need an
operating system which can coordinate
• Multiprocessing operating system
a number of CPU’s (processors)
• Multi-user operating system
asymmetric: different tasks assigned to
different CPU’s each with its own
A computer hardware configuration that includes more than
one independent processing unit.
memory
symmetric: tasks and memory shared
equally among CPU’s
Multi-threading and Multi-user Parallel Systems (Cont.)
Symmetric multiprocessing (SMP)
Multi-threading: similar to multi-tasking
Each processor runs an identical copy of the operating
but takes place within a single system.
application, e.g. one wants to take in Many processes can run at once without performance
typed information and see it on the deterioration.
screen simultaneously Most modern operating systems support SMP
Asymmetric multiprocessing
Multi-user: having more than one user, Each processor is assigned a specific task; master
operating systems for work stations, processor schedules and allocated work to slave
mainframe, mini and supercomputers processors.
allow for more than one user More common in extremely large systems
Increased reliability
graceful degradation
fail-soft systems
Networking Operating System Distributed Operating System
• A networked computing system is a A distributed computing system
collection of physical interconnected consists of a number of computers
computers. that are connected and managed so
• The OS of each of the
interconnected computers must
that they automatically share the job
contain provisions for handling processing load among the
communication and transfer of constituent computers, or separate
program and data among the other
computers, in addition to its own the job load as appropriate
stand-alone functionality. particularly configured processors.
DISTRIBUTED OPERATING
SYTEM Distributed Systems
Distributed operating system is one Distribute the computation among several physical
processors.
that looks to its users like an ordinarily Loosely coupled system – each processor has its own local
memory; processors communicate with one another through
centralized operating system but runs various communications lines, such as high-speed buses or
telephone lines.
on multiple independent CPU’s. Key Advantages of distributed systems.
Resources Sharing
Reliability
Communications
General Structure of Client-
Distributed Systems (cont) Server