OS and Its Functions
OS and Its Functions
UNIT-1
Content of Unit-1
What is an OS?
Evolution of OS
OS Services
Types of OS
Concepts of OS
Different view of OS
Concepts of OS
What
is an OS?
Operating System is large and complex ,it must be created piece by piece
.Each of These pieces should be a well delineated portion of system ,with
carefully defined Input ,outputs and function .
OS FUNCTIONS
At the simplest level, an operating system does two things:
1. It manages the hardware and software resources of the system. In a desktop
computer, these resources include such things as the processor, memory, disk
space and more (On a cell phone, they include the keypad, the screen, the
address book, the phone dialer, the battery and the network connection).
The first task, managing the hardware and software resources, is very
important, as various programs and input methods compete for the attention
of the central processing unit (CPU) and demand memory, storage and
input/output (I/O) bandwidth for their own purposes. In this capacity, the
operating system plays the role of the good parent, making sure that each
application gets the necessary resources while playing nicely with all the
other applications, as well as husbanding the limited capacity of the system to
the greatest good of all the users and applications.
The second task, providing a consistent application interface, is especially
important if there is to be more than one of a particular type of computer using
the operating system, or if the hardware making up the computer is ever open
to change. A consistent application program interface (API) allows a software
developer to write an application on one computer and have a high level of
confidence that it will run on another computer of the same type, even if the
amount of memory or the quantity of storage is different on the two machines.
Even if a particular computer is unique, an operating system can ensure that
applications continue to run when hardware upgrades and updates occur. This is
because the operating system -- not the application -- is charged with managing
the hardware and the distribution of its resources. One of the challenges facing
developers is keeping their operating systems flexible enough to run hardware
from the thousands of vendors manufacturing computer equipment. Today's
systems can accommodate thousands of different printers, disk drives and
special peripherals in any possible combination.
Evolution
of OS
The
Macintosh
operating
system was based on decades of
research on graphically-oriented
personal computer operating
systems and applications.
This photo of shows Ivan
Sutherland's
pioneering
programSketchpad in the early
1960s.
Sketchpad
foreshadowed many of the
characteristics of a modern
GUI, but the hardware cost
millions of dollars and filled a
room. After many generations
of research projects on large
computers and improvement in
hardware,
the
Macintosh
became economically feasible.
OS Services
Following are the five services provided by an operating
systems to the convenience of the users.
(1)
Program Execution
The purpose of a computer systems is to allow the user to execute programs. So the
operating systems provides an environment where the user can conveniently run
programs. The user does not have to worry about the memory allocation or
multitasking or anything. These things are taken care of by the operating systems.
7
(2)I/O Operations
Each program requires an input and produces output. This involves the
use of I/O. The operating systems hides the user the details of underlying
hardware for the I/O. All the user sees is that the I/O has been performed
without any details. So the operating systems by providing I/O makes it
convenient for the users to run programs.
For efficiently and protection users cannot control I/O so this service
cannot be provided by user-level programs.
(4)Communications
There are instances where processes need to communicate with each other to
exchange information. It may be between processes running on the same computer
or running on the different computers. By providing this service the operating
system relieves the user of the worry of passing messages between processes. In
8
(5)
Error Detection
An error is one part of the system may cause malfunctioning of the complete
system. To avoid such a situation the operating system constantly monitors
the system for detecting the errors. This relieves the user of the worry of
errors propagating to various part of the system and causing malfunctioning.
Types Of OS
An operating system is the single most important software when you run a
computer, it is what takes care of pretty much everything on a computer
system, while the majority of computers we see happen to be using one
type of operating system performing the same functions, operating
systems can be branched into several different types as well.
(1) Batch Processing Operating System
In a batch processing operating system interaction between the user and
processor is limited or there is no interaction at all during the execution of
work. Data and programs that need to be processed are bundled and
collected as a batch and executed together.
Batch processing operating systems are ideal in situations where:
- There are large amounts of data to be processed.
- Similar data needs to be processed.
- Similar processing is involved when executing the data.
9
Different Views Of OS
There are two views for OS .one is from user side and another is from System Side
User's View
The user view of the computer varies by the interface being used. Most computer
users sit in front of a PC, consisting of a monitor, keyboard, mouse and system
unit. Such a system is designed for one user to monopolize its resources, to
maximize the work that the user is performing. In this case,the operating system
is designed mostly for ease of use, with some attention paid to performance, and
none paid to resource utilization.
Systems View
We can view an operating system as a resource allocator. A computer system has
many resources - hardware and software - that may be required to solve a
problem. The operating system acts as the manager of these resources.
11
An operating system can also be viewed as a control program that manages the
execution of user programs to prevent errors and improper use of the computer.
It is especially concerned with the operation and control of I/O devices.
We have no universally accepted definition of what is part of the operating
system. A simple viewpoint is that it includes everything a vendor ships when you
order the operating system.
A more common definition is that the operating system is the one program
running at all times on the computer (usually called the kernel), with all else
being application programs. This is the one that we generally follow.
The address Space Contains executable program, the programs data and its stack.
12
13