0% found this document useful (0 votes)
19 views10 pages

Os Overview 4 13

An operating system (OS) is a crucial program that manages computer hardware, providing an interface between users and the hardware while controlling resources like CPU and memory. It facilitates user interaction and application execution, ensuring efficient resource utilization and error handling. Various types of operating systems exist, including mainframe, personal computer, and real-time systems, each serving different user needs and operational requirements.

Uploaded by

pranav jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views10 pages

Os Overview 4 13

An operating system (OS) is a crucial program that manages computer hardware, providing an interface between users and the hardware while controlling resources like CPU and memory. It facilitates user interaction and application execution, ensuring efficient resource utilization and error handling. Various types of operating systems exist, including mainframe, personal computer, and real-time systems, each serving different user needs and operational requirements.

Uploaded by

pranav jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Operating System:

• An operating system is a program which manages all the computer hardwares.


• It provides the base for application program and acts as an intermediary between a user and the
computer hardware.
• The operating system has two objectives such as:
 Firstly, an operating system controls the computer’s hardware.
 The second objective is to provide an interactive interface to the user and interpret
commands so that it can communicate with the hardware.
• The operating system is very important part of almost every computer system.
Managing Hardware

• The prime objective of operating system is to manage & control the various hardware resources
of a computer system.
• These hardware resources include processer, memory, and disk space and so on.
• The output result was display in monitor. In addition to communicating with the hardware
theoperating system provides on error handling procedure and display an error notification.
• If a device not functioning properly, the operating system cannot be communicate with the
device.
Providing an Interface

• The operating system organizes application so that


users can easily access, use and store them.

4|Page
• It provides a stable and consistent way for applications to deal with the hardware without the
user having known details of the hardware.
• If the program is not functioning properly, the operating system again takes control, stops the
application and displays the appropriate error message.
message
• Computer system components
nents are divided into 5 parts
 Computer hardware
 operating system
 utilities
 Application programs
 End user

• The operating system controls and coordinate a user of hardware and various application
programs for various users.
users
• It is a program that directly interacts with the hardware.
• The operating system is the first encoded with the Computer and it remains on the memory all
time thereafter.
System goals

• The purpose of an operating system is to be provided an environment in which an user can


execute programs.
• Its primary goals are to make the computer system convenience for the user.
• Its secondary goals are to use the computer hardware in efficient manner.

5|P age
View of operating system
• User view:The user view of the computer varies by the interface being used. The examples
are -windows XP, vista, windows 7 etc. Most computer user sit in the in front of personal
computer (pc) in this case the operating system is designed mostly for easy use with some
attention paid to resource utilization. Some user sit at a terminal connected to a
mainframe/minicomputer. In this case other users are accessing the same computer through
the other terminals. There user are share resources and may exchange the information. The
operating system in this case is designed to maximize resources utilization to assume that all
available CPU time, memory and I/O are used efficiently and no individual user takes more
than his/her fair and share.The other users sit at workstations connected to network of
other workstations and servers. These users have dedicated resources but they share
resources such as networking and servers like file, compute and print server. Here the
operating system is designed to compromise between individual usability and resource
utilization.
• System view: From the computer point of view the operating system is the program which
is most intermediate with the hardware. An operating system has resources as hardware and
software which may be required to solve a problem like CPU time, memory space, file
storage space and I/O devices and so on. That’s why the operating system acts as manager
of these resources. Another view of the operating system is it is a control program. A control
program manages the execution of user programs to present the errors in proper use of the
computer. It is especially concerned of the user the operation and controls the I/O devices.
Types of Operating System
1. Mainframe System: It is the system where the first computer used to handle many commercial
scientific applications. The growth of mainframe systems traced from simple batch system
where the computer runs one and only one application to time shared systems which allowed
for user interaction with the computer system
a. Batch /Early System: Early computers were physically large machine. The common
input devices were card readers, tape drivers. The common output devices were line
printers, tape drivers and card punches. In these systems the user did not interact directly
with the computer system. Instead the user preparing a job which consists of
programming data and some control information and then submitted it to the computer

6|Page
operator after some time the output is appeared. The output in these early computer was
fairly simple is main task was to transfer control automatically from one job to next. The
operating system always resides in the memory. To speed up processing operators
batched the jobs with similar needs and ran then together as a group. The disadvantages
of batch system are that in this execution environment the CPU is often idle because the
speed up of I/O devices is much slower than the CPU.

b. Multiprogrammed System: Multiprogramming concept increases CPU utilization by


organization jobs so that the CPU always has one job to execute the idea behind
multiprogramming concept. The operating system keeps several jobs in memory
simultaneously as shown in below figure.

This set of job is subset of the jobs kept in the job pool. The operating system picks and
beginning to execute one of the jobs in the memory. In this environment the operating
system simply switches and executes another job. When a job needs to wait the CPU is
simply switched to another job and so on. The multiprogramming operating system is
sophisticated because the operating system makes decisions for the user. This is known as
scheduling. If several jobs are ready to run at the same time the system choose one among

7|Page
them. This is known as CPU scheduling. The disadvantages of the multiprogrammed
system are
• It does not provide user interaction with the computer system during the
program execution.
• The introduction of disk technology solved these problems rather than reading
the cards from card reader into disk. This form of processing is known as
spooling.
SPOOL stands for simultaneous peripheral operations online. It uses the disk as a huge
buffer for reading from input devices and for storing output data until the output
devices accept them. It is also use for processing data at remote sides. The remote
processing is done and its own speed with no CPU intervention. Spooling overlaps the
input, output one job with computation of other jobs. Spooling has a beneficial effect on
the performance of the systems by keeping both CPU and I/O devices working at much
higher time.
c. Time Sharing System:The time sharing system is also known as multi user systems. The
CPU executes multiple jobs by switching among them but the switches occurs so
frequently that the user can interact with each program while it is running. An interactive
computer system provides direct communication between a user and system. The user
gives instruction to the operating systems or to a program directly using keyboard or
mouse and wait for immediate results. So the response time will be short. The time
sharing system allows many users to share the computer simultaneously. Since each action
in this system is short, only a little CPU time is needed for each user. The system switches
rapidly from one user to the next so each user feels as if the entire computer system is
dedicated to his use, even though it is being shared by many users. The disadvantages of
time sharing system are:
• It is more complex than multiprogrammed operating system
• The system must have memory management & protection, since several jobs are kept
in memory at the same time.
• Time sharing system must also provide a file system, so disk management is required.
• It provides mechanism for concurrent execution which requires complex CPU
scheduling schemes.

8|Page
2. Personal Computer System/Desktop System: Personal computer appeared in 1970’s. They
are microcomputers that are smaller & less expensive than mainframe systems. Instead of
maximizing CPU & peripheral utilization, the systems opt for maximizing user convenience &
responsiveness. At first file protection was not necessary on a personal machine. But when
other computers 2nd other users can access the files on a pc file protection becomes necessary.
The lack of protection made if easy for malicious programs to destroy data on such systems.
These programs may be self replicating& they spread via worm or virus mechanisms. They can
disrupt entire companies or even world wide networks. E.g : windows 98, windows 2000,
Linux.
3. Microprocessor Systems/ Parallel Systems/ Tightly coupled Systems: These Systems
have more than one processor in close communications which share the computer bus, clock,
memory & peripheral devices. Ex: UNIX, LINUX. Multiprocessor Systems have 3 main
advantages.
a. Increased throughput: No. of processes computed per unit time. By increasing the no.
of processors move work can be done in less time. The speed up ratio with N processors
is not N, but it is less than N. Because a certain amount of overhead is incurred in
keeping all the parts working correctly.
b. Increased Reliability: If functions can be properly distributed among several processors,
then the failure of one processor will not halt the system, but slow it down. This ability to
continue to operate in spite of failure makes the system fault tolerant.
c. Economic scale: Multiprocessor systems can save money as they can share peripherals,
storage & power supplies.
The various types of multiprocessing systems are:
• Symmetric Multiprocessing (SMP): Each processor runs an identical copy of the
operating system & these copies communicate with one another as required. Ex: Encore’s
version of UNIX for multi max computer. Virtually, all modern operating system
including Windows NT, Solaris, Digital UNIX, OS/2 & LINUX now provide support for
SMP.

9|Page
• Asymmetric Multiprocessing (Master – Slave Processors): Each processor is
designed for a specific task. A master processor controls the system & schedules &
allocates the work to the slave processors. Ex- Sun’s Operating system SUNOS version 4
provides asymmetric multiprocessing.
4. Distributed System/Loosely Coupled Systems: In contrast to tightly coupled systems, the
processors do not share memory or a clock. Instead, each processor has its own local memory.
The processors communicate with each other by various communication lines such as high
speed buses or telephone lines. Distributed systems depend on networking for their
functionalities. By being able to communicate distributed systems are able to share
computational tasks and provide a rich set of features to the users. Networks vary by the
protocols used, the distances between the nodes and transport media. TCP/IP is the most
common network protocol. The processor is a distributed system varies in size and function. It
may microprocessors, work stations, minicomputer, and large general purpose computers.
Network types are based on the distance between the nodes such as LAN (within a room, floor
or building) and WAN (between buildings, cities or countries). The advantages of distributed
system are resource sharing, computation speed up, reliability, communication.
5. Real time Systems: Real time system is used when there are rigid time requirements on the
operation of a processor or flow of data. Sensors bring data to the computers. The computer
analyzes data and adjusts controls to modify the sensors inputs. System that controls scientific
experiments, medical imaging systems and some display systems are real time systems. The
disadvantages of real time system are:
a. A real time system is considered to function correctly only if it returns the correct result
within the time constraints.
b. Secondary storage is limited or missing instead data is usually stored in short term
memory or ROM.
c. Advanced OS features are absent.
Real time system is of two types such as:

10 | P a g e
• Hard real time systems: It guarantees that the critical task has been completed on time.
The sudden task is takes place at a sudden instant of time.
• Soft real time systems: It is a less restrictive type of real time system where a critical task
gets priority over other tasks and retains that priority until it computes. These have more
limited utility than hard real time systems. Missing an occasional deadline is acceptable
e.g. QNX, VX works. Digital audio or multimedia is included in this category.
It is a special purpose OS in which there are rigid time requirements on the operation of a
processor. A real time OS has well defined fixed time constraints. Processing must be done
within the time constraint or the system will fail. A real time system is said to function correctly
only if it returns the correct result within the time constraint. These systems are characterized
by having time as a key parameter.
Basic Functions of Operation System:
The various functions of operating system are as follows:
1. Process Management:
• A program does nothing unless their instructions are executed by a CPU.A process is a program
in execution. A time shared user program such as a complier is a process. A word processing
program being run by an individual user on a pc is a process.
• A system task such as sending output to a printer is also a process. A process needs certain
resources including CPU time, memory files & I/O devices to accomplish its task.
• These resources are either given to the process when it is created or allocated to it while it is
running. The OS is responsible for the following activities of process management.
• Creating & deleting both user & system processes.
• Suspending & resuming processes.
• Providing mechanism for process synchronization.
• Providing mechanism for process communication.
• Providing mechanism for deadlock handling.
2. Main Memory Management:
The main memory is central to the operation of a modern computer system. Main memory is a
large array of words or bytes ranging in size from hundreds of thousand to billions. Main
memory stores the quickly accessible data shared by the CPU & I/O device. The central
processor reads instruction from main memory during instruction fetch cycle & it both reads

11 | P a g e
&writes data from main memory during the data fetch cycle. The main memory is generally the
only large storage device that the CPU is able to address & access directly. For example, for the
CPU to process data from disk. Those data must first be transferred to main memory by CPU
generated E/O calls. Instruction must be in memory for the CPU to execute them. The OS is
responsible for the following activities in connection with memory management.
• Keeping track of which parts of memory are currently being used & by whom.
• Deciding which processes are to be loaded into memory when memory space becomes
available.
• Allocating &deallocating memory space as needed.
3. File Management:
File management is one of the most important components of an OS computer can store
information on several different types of physical media magnetic tape, magnetic disk & optical
disk are the most common media. Each medium is controlled by a device such as disk drive or
tape drive those has unique characteristics. These characteristics include access speed, capacity,
data transfer rate & access method (sequential or random).For convenient use of computer
system the OS provides a uniform logical view of information storage. The OS abstracts from
the physical properties of its storage devices to define a logical storage unit the file. A file is
collection of related information defined by its creator. The OS is responsible for the following
activities of file management.
• Creating & deleting files.
• Creating & deleting directories.
• Supporting primitives for manipulating files & directories.
• Mapping files into secondary storage.
• Backing up files on non-volatile media.
4. I/O System Management:
One of the purposes of an OS is to hide the peculiarities of specific hardware devices from the
user. For example, in UNIX the peculiarities of I/O devices are hidden from the bulk of the OS
itself by the I/O subsystem. The I/O subsystem consists of:
• A memory management component that includes buffering, catching & spooling.
• A general device- driver interfaces drivers for specific hardware devices. Only the device
driver knows the peculiarities of the specific device to which it is assigned.

12 | P a g e
5. Secondary Storage Management:
The main purpose of computer system is to execute programs. These programs with the data
they access must be in main memory during execution. As the main memory is too small to
accommodate all data & programs & because the data that it holds are lost when power is lost.
The computer system must provide secondary storage to back-up main memory. Most modern
computer systems are disks as the storage medium to store data & program. The operating
system is responsible for the following activities of disk management.
• Free space management.
• Storage allocation.
• Disk scheduling
Because secondary storage is used frequently it must be used efficiently.
Networking:
A distributed system is a collection of processors that don’t share memory peripheral devices or a
clock. Each processor has its own local memory & clock and the processor communicate with one
another through various communication lines such as high speed buses or networks. The processors
in the system are connected through communication networks which are configured in a number of
different ways. The communication network design must consider message routing & connection
strategies are the problems of connection & security.
Protection or security:
If a computer system has multi users & allow the concurrent execution of multiple processes then
the various processes must be protected from one another’s activities. For that purpose,
mechanisms ensure that files, memory segments, CPU & other resources can be operated on by only
those processes that have gained proper authorization from the OS.
Command interpretation:
One of the most important functions of the OS is connected interpretation where it acts as the
interface between the user & the OS.
System Calls:
System calls provide the interface between a process & the OS. These are usually available in the
form of assembly language instruction. Some systems allow system calls to be made directly from a
high level language program like C, BCPL and PERL etc. systems calls occur in different ways
depending on the computer in use. System calls can be roughly grouped into 5 major categories.

13 | P a g e

You might also like