Module 1 Chapter 1
Module 1 Chapter 1
com/c/EDULINEFORCSE
STUDENTS
MODULE 1
CHAPTER 1 - INTRODUCTION TO
OPERATING SYSTEMS
OPERATING SYSTEMS
• An operating system is a program that manages the computer
hardware.
• It acts as an intermediary between the user of a computer and the
computer hardware.
• The purpose of an operating system is to provide an environment
in which a user can execute programs in a convenient and efficient
manner.
• Some operating systems are designed to be convenient, others to
be efficient, and others some combination of the two.
Efficient - optimum resource utilization
Convenient - user interaction is simple.
Prepared By Mr.EBIN PM, AP, IESCE EDULINE 2
VVVVV
2. MULTIPROGRAMMED SYSTEMS
• Multiprogramming increases CPU utilization by organizing jobs so
that the CPU always has one to execute.
• The operating system keeps several jobs in memory
simultaneously.
• This set of jobs is a subset of the jobs kept in the job pool.
• The operating system picks and begins to execute one of the jobs
in the memory.
• Eventually, the job may have to wait for some task, such as an I/O
operation, to complete.
JOB POOL
• All the jobs that enter the system are kept in the job pool. This pool
consists of all processes residing on disk awaiting allocation of
main memory.
• As the system switches rapidly from one user to the next, each user
is given the impression that the entire computer system is
dedicated to her use, even though it is being shared among many
users.
• A time-shared operating system uses CPU scheduling and
multiprogramming to provide each user with a small portion of a
time-shared computer.
• Each user has at least one separate program in memory.
• A program loaded into memory and executing is commonly
referred to as a process.
4. MULTIPROCESSOR SYSTEMS
• Most systems to date are single-processor systems; that is, they
have only one main CPU.
• Multiprocessor systems also known as parallel systems or tightly
coupled systems.
• Such systems have more than one processor in close
communication, sharing the computer bus, the clock, and
sometimes memory and peripheral devices.
ADVANTAGES
1. Increased throughput: By increasing the number of processors,
we hope to get more work done in less time. The speed-up ratio
with N processors is not N; rather, it is less than N.
Prepared By Mr.EBIN PM, AP, IESCE EDULINE 17
• Also, since the CPUs are separate, one may be sitting idle while
another is overloaded, resulting in inefficiencies. These
inefficiencies can be avoided if the processors share certain data
structures.
• An example of the SMP system is Encore's version of UNIX for the
Multimax computer
b. Asymmetric multiprocessors
• Here which each processor is assigned a specific task.
• A master processor controls the system; the other processors
either look to the master for instruction or have predefined tasks.
• This scheme defines a master-slave relationship.
• The master processor schedules and allocates work to the slave
processors.
• The difference between symmetric and asymmetric
multiprocessing may be the result of either hardware or software.
5. CLUSTERED SYSTEMS
• Like parallel systems, clustered systems gather together multiple
CPUs to accomplish computational work.
• Clustered systems differ from parallel systems, however, in that
they are composed of two or more individual systems coupled
together.
• Clustered computers share storage and are closely linked via LAN
networking.
• Clustering is usually performed to provide high availability.
• A layer of cluster software runs on the cluster nodes.
• Each node can monitor one or more of the others (over the LAN).
• If the monitored machine fails, the monitoring machine can take
ownership of its storage, and restart the application(s) that were
running on the failed machine.
• The failed machine can remain down, but the users and clients of
the application would only see a brief interruption of service.
a. Symmetric clustering
• In symmetric mode, two or more hosts are running applications,
and they are monitoring each other.
• This mode is obviously more efficient, as it uses all of the available
hardware. It does require that more than one application be
available to run.
b. Asymmetric clustering
• In asymmetric clustering, one machine is in hot-standby mode
while the other is running the applications.
• The hot-standby host (machine) does nothing but monitor the
active server. If that server fails, the hot standby host becomes the
active server
Prepared By Mr.EBIN PM, AP, IESCE EDULINE 24
6. REAL-TIME SYSTEMS
• It is a special-purpose operating system.
• A real-time system is used when rigid time requirements have been
placed on the operation of a processor.
• It is often used as a control device in a dedicated application.
• Sensors bring data to the computer. The computer must analyze
the data and possibly adjust controls to modify the sensor inputs.
• A real-time system has well-defined, fixed time constraints.
Processing must be done within the defined constraints, or the
system will fail.
• A real-time system functions correctly only if it returns the correct
result within its time constraints.
Prepared By Mr.EBIN PM, AP, IESCE EDULINE 26