unit1introductionto operating system
unit1introductionto operating system
Objectives
At the end of this unit, you should be able to:
Define an OS
State the major functions of the OS
State the importance of the OS in the computer system
Enumerate the various services rendered the user by the OS
Introduction
A modern computer consists of one or more processors, some main memory, disks,
printers, a keyboard, a mouse, a display, network interfaces, and various other
input/output devices. Managing all this components and using them optimally is a
very challenging job. For this reason, computer are equipped with a layer of software
called the operating system.
I. What is an Operating System?
Figure 1:
Where
the
OS can further be described by what they do i.e. by their functions, goals and
objectives. Therefore, the goals of the OS are:
Convenience for the User
When there is no OS, users of computer system will need to write machine-level
program in order to manipulate the hardware. With OS, users can now easily and
conveniently use the computer with no stress of directly programming the hardware.
OS provide a convenient interface for using the computer system.
Efficiency
OS can be viewed from the perspective of what they are. These views are
diverse depending on the particular view point of a user. But some of these views are
discussed below.
OS as a User/Computer Interface
A computer system has a set of resources for the movement, storage and processing
of data. The OS is responsible for managing these resources. Note that resources
include CPU, file storage space, data, programs, memory space, I/O devices, etc.
The OS is like any other computer program in that it provides instructions for
the processor. The key difference is in the purpose of the program. The OS directs
the processor in the use of the other system resources and in the timing of its
execution of other programs. The processor, in order to do any of these things, must
cease execution of the OS program to execute other programs. Thus, the OS
relinquishes control long enough to prepare the processor to do the next piece of
work.
The portion of the OS that is always in main memory is called the kernel or nucleus
and it contains the most frequently used functions in the OS. The remainder of the
main memory contains other user programs and data. The allocation of this resource
(i.e. main memory) is controlled jointly by the OS and the memory management
hardware in the processor.
IV. Services Provided by the OS
The conveniences offered the user are in diverse and following ways:
Program Creation: Although editors and debuggers are not part of the OS,
memory. I/O devices and files are initialised and other resources are
prepared. The program must be able to end its execution either normally or
abnormally. In case of abnormal end to a program, it must indicate error.
Access to I/O devices: Each I/O device requires its own set of
instructions or control signal for operation. The OS takes care of the
details so that the programmer can think in terms of reads and writes.
Controlled Access: In the case of files, control includes an understanding of
the nature of the I/O device (e.g. diskette drive, CDROM drive, etc.) as well
as the file format of the storage medium. The OS deals with these details. In
the case of the multi-user system, the OS must provide protection
mechanisms to control access to the files.
Communications: There are many instances in which a process needs to
exchange information with another process. There are two major ways
in which communication can occur:
It can take place between processes executing on the same computer.
In each case, the OS must make a response that makes the less impact on
running applications. The response may range from ending the program that caused
the error, retrying the operation or simply reporting the error to the
Application.
Efficiency of System: Single and Multi-User
computer resources are used by each user. Today, this recordkeeping is not
for billing purposes but for simply accumulating usage statistics. This
statistics may be available tool for researchers who want to reconfigure the
system to improve computing services.
Ease of Evolution of OS: A major OS will evolve over time for a
Facilitating I/O
Etc.
Conclusion
The OS is a very important software in the computer system that provides a variety of
services to the applications running on the system and the user. It also adds to the
efficiency and performance of the computer system. The OS forms the bedrock of the
computer system and is the platform on which all other software run. But the OS has
not always been nor come with the computer system. It evolved over time.
Assignment
1. What do you understand by the term ‘Operating System’?
2. List and briefly explain the various services rendered to the users by the OS
References/Further Reading
T. Y. James (1999). Introduction to Operating Systems. 2nd Edition
Silberschatz, Abraham; Galvin, Peter Baer; Gagne, Greg (2004). Operating
System Concepts. Hoboken, NJ: John Wiley & Sons. ISBN 0-471-69466-5