lecture 4
lecture 4
Topic 4
1
DEFINITION
An operating system is the main program
that controls and manages the computer’s
hardware and software resources.
Some examples of operating systems include
DIAGRAM 2
OS DIAGRAM
3
OPERATING SYSTEM
4
STRUCTURE OF AN OPERATING
SYSTEM
In order to control the interactions between
various systems resources, an operating
system may consist of a complicated set of
layers with the lowest being the hardware
and the highest being the user application.
The kernel is the core of an operating
6
RESOURCES MANAGED BY AN
OPERATING SYSTEM
Processor: it is the operating system which
determines which task (process) will be executed
first.
Memory: the operating system determines which
task (process) remains in the main memory and
which one will be temporarily suspended to the
virtual memory.
Input/output devices and ports: the operating
system allocates requests from applications to
input/output devices. It also ensures smooth data
transfer between the various input/output devices.
Secondary storage devices: the operating system
manages the storage and retrieval of data from
backing storage.
Communication devices: the operating system
manages various communication devices and provides
an environment within which communication
protocols operate. Protocol refers to the rules that 7
govern communication between devices on a network.
FUNCTIONS OF AN OPERATING
SYSTEM
Job scheduling: the operating system
kernel schedules or determines which task
will use what resources at what time.
Some tasks will be given priority over others
due to the nature of request. This is referred
to as interrupt handling.
Interrupt handling: an interrupt is a break
from the sequential processing of a task
or program by transferring control to a new
process that requests to be executed.
Resource control and allocation: the
operating system maintains a set of queues
made up of the processes waiting for a
particular resource. Using the round robin
technique, each process on the queue is
given access to a resource in turn. 8
CONT’ED
Input/output management: the operating system
uses special software called device drivers to manage
and communicate with input/output devices such as
keyboard, mouse, display, sound output devices,
printers and scanners.
Memory management: the operating system divides
the main memory into partitions. If the partitions are of
fixed size, they are called pages and the operating
system knows exactly on which page a process or data
is currently held.
The ones which are not needed immediately are held in
the virtual memory.
Error handling: the operating system performs error
checking on hardware, software and data. It may
suggest solutions to problems that are identified.
Job sequencing: the operating system arranges tasks
to be processed in a particular order and clocks them
in and out of the processor.
Security: modern operating systems implement
security policies such that unauthorized users cannot 9
get access to a computer network resource.
Booting:
TYPES OF OPERATING SYSTEMS
There are several types of operating systems. These
operating systems can be classified according to:
Size of the computer
Number of tasks
Number of users
User interface
12
CLASSIFICATION ACCORDING TO USER-
INTERFACE
The three types of operating systems according to user-
interface are command-line, menu driven and
graphical user-interface (GUI) operating systems.
Command-line users interface; lets the user type a
command at the command prompt. Examples of
command-line OS are MSDOS, UNIX and OS/2.They have
become unpopular because it is difficult to remember
the commands, they cannot process complex graphics and
they hardly make use of emerging hardware and software
technologies.
Menu driven operating systems; were developed to
address the shortcomings of command-line interface. The
user simply chooses commands from a list of menu
options. Example is DOS editor screen that came with later
versions of MSDOS.
Graphical user-interface (GUI) operating systems; is
the latest effort to make the user-interface more friendly.
Besides menus, GUI makes use of rectangular frames
called windows, graphical objects called icons and most
commands are executed using a pointing device. These
features are given an acronym WIMP which stands for
Windows, Icons, Menus and Pointer. Some examples 13
of GUI operating systems include Microsoft Windows,
MacOS and Linux.
FACTORS TO CONSIDER WHEN CHOOSING
AN OPERATING SYSTEM
The hardware configuration of the computer
such as the memory capacity, processor
speed and hard disk capacity.
The type of computer in terms of size and
make.
The application software intended for the
computer.
User-friendliness of the operating system.
The documentation available.
The cost of the operating system.
Reliability and security provided by the
operating system.
The number of processors and hardware it
can support.
The number of users it can support. 14
HOW AN OPERATING SYSTEM
ORGANIZES INFORMATION
Most operating systems organize information in a
three-tier hierarchy:
Drives
Files
Folders
Folder or directory is a named storage location
(/).
A folder may be subdivided into smaller units
called subfolders. 15
CONT’ED
Drives
The operating system views storage media or