CHP - 1 Operating Systems Types and Structure PDF
CHP - 1 Operating Systems Types and Structure PDF
Prepared By:
Amit K. Shrivastava
Asst. Professor
Nepal College Of Information Technology
1.1 Introduction and History of Operating Systems
An operating system 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.
An operating system is software that manages the computer hardware.
The hardware must provide appropriate mechanisms to ensure the correct
operation of the computer system and to prevent user programs from
interfering with the proper operation of the system.
History of Operating System:
Operating systems have been evolving through the years. Since operating
systems have historically been closely tied to the architecture of the
computers on which they run, we will look at successive generations of
computers to see what their operating systems were like.
The First Generation (1945- 55) Vacuum Tubes and Plug boards
First of all calculating engines is built and mechanical relays were used
but were very slow, with cycle times measured in seconds. Relays were
later replaced by vacuum tubes. All programming was done in absolute
machine language, often by wiring up plugboards to control the machine's
basic functions. By the early 1950s, the routine had improved somewhat
with the introduction of punched cards. It was now possible to write
programs on cards and read them in instead of using plugboards;
History of Operating System(contd..):
The Second Generation (1955-65) Transistors and Batch Systems
The introduction of the transistor in the mid-1950s changed the picture
radically. These machines, now called mainframes, and to run a job a
programmer would first write the program on paper (in FORTRAN or
possibly even in assembly language), then punch it on cards. But it was
time consuming and costly. The solution generally adopted was the batch
system. The idea behind it was to collect a tray full of jobs in the input
room and then read them onto a magnetic tape using a small (relatively)
inexpensive computer, such as the IBM 1401.
The Third Generation (1965-1980) ICs and Multiprogramming
The 360 developed by IBM was the first major computer line to use
(small-scale) Integrated Circuits (ICs), thus providing a major price/
performance advantage over the second-generation machines, which were
built up from individual transistors. And the most important advantage was
multiprogramming. Here, the memory was partitioned into several pieces,
with a different job in each partition, while one job was waiting for the I/O to
complete, another job could be using the CPU.
History of Operating System(contd..):
The Fourth Generation (1980Present) Personal Computers
With the development of LSI (Large Scale Integration) circuits chips
containing thousands of transistors on a square centimeter of silicon, the
age of personal computer dawned. First kildall wrote a disk base operating
system called CP/M(Control Program for Microcomputers) for Intel in
1974, then in early 1980’s DOS(Disk Operating System) was invented and
after that Microsoft revised it and renamed MS-DOS(Microsoft Disk
Operating System). All these operating systems were all based users
typing in commands from the keyboard after that GUI(Graphical User
Interface) was invented, complete with windows, icons, menus, and
mouse. After that different version of windows and Unix came in to light.
Operating System Types:
• Batch Systems
• Time-Sharing Systems
•Personal-Computer Systems
•Parallel Systems
•Real Time Systems
•Distributed Systems
Batch Systems
Jobs with similar needs are batched together and run through the
computer as a group by an operator or automatic job sequencer.
Performance is increased by attempting to keep CPU and I/O devices
busy at all times through buffering, off-line operation, spooling, and
multiprogramming. Batch is good for executing large jobs that need little
interaction; it can be submitted and picked up later. The problems with
Batch Systems are following.
Lack of interaction between the user and job.
Difficult to provide the desired priority.
Time-Sharing Systems
This systems uses CPU scheduling and multiprogramming to provide
economical interactive use of a system. The CPU switches rapidly from
one user to another. Instead of having a job defined by spooled card
images, each program reads its next control card from the terminal, and
output is normally printed immediately to the screen. Advantages of
Timesharing operating systems are - Provide advantage of quick
response, Avoids duplication of software, Reduces CPU idle time.
Personal-Computer Systems
A Personal Computer(PC) is a small, relatively inexpensive computer
designed for an individual user. All are based on the microprocessor
technology that enables manufacturers to put an entire CPU on one
chip. At home, the most popular use for personal computers is for
playing games. Businesses use personal computers for word-
processing, accounting, desktop publishing, and for running
spreadsheet and database management applications. The goals of
these operating systems is not only maximizing CPU and peripheral
utilization, but also maximizing user convenience and responsiveness.
Parallel Systems
Parallel operating systems are used to interface multiple
networked computers to complete tasks in parallel. The architecture of
the software is often a UNIX-based platform, which allows it to
coordinate distributed loads between multiple computers in a network.
Parallel operating systems are able to use software to manage all of
the different resources of the computers running in parallel, such
as memory, caches, storage space, and processing power.
Parallel operating systems also allow a user to directly interface with all
of the computers in the network. Its one advantage is increased
throughput.
Real-Time Systems
Often used in a dedicated application, this system reads information
from sensors and must respond within a fixed amount of time to ensure
correct performance. In this Response Time is already fixed. Means
time to Display the Results after Possessing has fixed by
the Processor or CPU. Real Time System is used at those Places in
which we Requires higher and Timely Response.
Distributed Systems
This system distributes computation among several physical
processors. The processors do not share memory or a clock. Instead,
each processor has its own local memory. They communicate with each
other through various communication lines, such as a high-speed bus or
telephone line. The advantages of distributed systems are- With
resource sharing facility user at one site may be able to use the
resources available at another, Speedup the exchange of data with one
another via electronic mail, If one site fails in a distributed system, the
remaining sites can potentially continue operating, Better service to the
customers, Reduction of the load on the host computer.
Operating System as Resource Manager:
• Operating system is collection of software which is close to hardware.
We can view operating system as a resource – hardware and software
collector. A system has many hardware and software that may be required
to solve the problem, cpu time, memory space, file storage space, i/o
device etc. the operating system acts as manager of these resources.
• Modern computer consists of process, memories, times, disks, network,
printer and wide varieties of other devices. The tab of the operating
system is to provide for an orderly and controlled allocation of the
process, memories and I/O devices among the various programs
completing for them.
• An operating system is a control program, a control program manages
the execution of user program to prevent errors and improve use of
computer. It is especially concerned with the operation and control of I/O
devices. When a computer has multiple users the operating system
manages and protects the memory I/O devices. The operating system
keeps in trace that who is using which resource to grant resource required
amount for usage and to mediate conflicting required different programs
and users.
Operating System as Extended Machine:
• The program that hides the truth about the hardware from the
programmer and presents a nice, simple view of named files that can be
read and written is, of course, the operating system. Just as the operating
system shields the programmer from the disk hardware and presents a
simple file-oriented interface, it also conceals a lot of unpleasant
business concerning interrupts, timers, memory management, and other
low-level features. In each case, the abstraction offered by the operating
system is simpler and easier to use than that offered by the underlying
hardware.
• In this view, the function of the operating system is to present the user
with the equivalent of an extended machine or virtual machine that is
easier to program than the underlying hardware. To summarize it in a
nutshell, the operating system provides a variety of services that
programs can obtain using special instructions called system calls.
Operating-System Structures
System Components: Common System Components are
• Process Management
• Main Memory Management
• Secondary-Storage Management
• I/O System Management
• File Management
• Protection System
• Networking
• Command-Interpreter System
Process Management
• A process is a program in execution. A process needs certain
resources, including CPU time, memory, files, and I/O devices, to
accomplish its task.
• The operating system is responsible for the following activities in
connection with process management.
– Process creation and deletion.
– process suspension and resumption.
– Provision of mechanisms for:
* process synchronization
* process communication
Main-Memory Management