UNIT I - OS Basics
UNIT I - OS Basics
10
1.The First Generation (1945-55)
• Around the mid-1940s (about World War II), it is succeeded to
build calculating engines. The first ones used mechanical relays
but were very slow, with cycle times measured in seconds.
Relays were later replaced by vacuum tubes.
11
• All programming was done in absolute machine language,
often by wiring up plugboards to control the machine’s
basic functions.
• People quickly looked for ways to reduce the wasted time. The
solution adopted was the batch system. Batch processing is execution
of a series of programs ("jobs") on a computer without manual
intervention.
• The idea behind it was to collect full of jobs in a tape then read them
onto a magnetic tape. After finishing process the results were writen in
output tape.(Such as the IBM 1401)
14
• After about an hour of collecting a batch of jobs, the tape was
brought into the machine room, where it was mounted on a tape
drive. The operator then loaded a special program (ancestor of
today’s operating system).
• After each job finished, the operating system automatically read the
next job from the tape and began running it. When the whole batch
was done and brought the output tape to a 1401 for printing offline.
15
3. The Third Generation (1965-1980)
• 7094 was the word-oriented, large-scale scientific computers which
were used for numerical calculations in science and engineering.
• On the other hand, 1401 was the character-oriented, commercial
computers which were widely used for commercical works.
• Both of these machines are very huge and people need small
machines.
• IBM produced the System/360 to solve these problems.
• All the machines had the same architecture and instruction set,
programs written for one machine could run on all the others.
• Furthermore, the 360 was designed to handle both scientific and
commercial computing. Thus a single family of machines
16 could satisfy
the needs of all customers.
• The 360 was the first major computer in which is used (small-scale)
Integrated Circuits first.
• OS/360 is the operating system used in third generation computers.
• Most of time along process, processor was idle and it causes waste
time (nearly %80 of total time).
• Multiprogramming is first used in OS/360.
17
• Another major feature present in third-generation operating systems
was the spooling (from Simultaneous Peripheral Operation On Line) .
Spooling refers to putting jobs in a buffer, a special area in memory or
on a disk where a device can access them when it is ready
• Timesharing, a variant of multiprogramming, in which each user has an
online terminal.
• UNIX operating system, which became popular in the academic world,
with government agencies, and with many companies.
• Most versions of UNIX now support POSIX which is an IEEE developed
a standard .
18
4. The Fourth Generation (1980-
Present)
• The age of the personal computer started with the development of LSI
(Large Scale Integration) circuits, chips containing thousands of
transistors on a square centimeter of silicon.
• In 1974, when Intel came out with the 8080, the first general-purpose
8-bit CPU and Kildall then wrote a disk-based operating system called
CP/M (Control Program for Microcomputers) for it.
• In the early 1980s, IBM designed the IBM PC and looked around for
software to run on it. People from IBM contacted Bill Gates to license
his BASIC interpreter. They also asked him if he knew of an operating
system to run on the PC.
19
• When IBM came back, Gates realized that a local computer manufacturer,
Seattle Computer Products, had a suitable operating system. DOS (Disk
Operating System). Gates then offered IBM a DOS/BASIC package which
IBM accepted. IBM wanted certain modifications, so Gates hired the
person who wrote DOS, Tim Paterson, as an employee of Gates’ small!!!
company (Microsoft). The revised system was renamed MS-DOS
(MicroSoft Disk Operating System) and quickly came to dominate the
IBM PC market.
• CP/M, MS-DOS, and other operating systems for early microcomputers
were all based on users typing in commands from the keyboard.
20
• One day, Steve Jobs, who co-invented the Apple computer in his
garage, visited PARC, saw a GUI, and instantly realized its potential
value. Jobs then embarked on building an Apple with a GUI.
• This project produced Lisa, which was too expensive and failed
commercially. Jobs’ second attempt, the Apple Macintosh, was a
huge success, not only because it was much cheaper than the Lisa,
but also because it was user friendly.
21
• Microsoft was strongly influenced by the success of the Macintosh. It produced
a GUI-based system called Windows, which originally ran on top of MS-DOS
(i.e.. it was more like a shell than a true operating system). For about 10 years,
from 1985 to 1993, Windows was just a graphical environment on top of MS-
DOS.
• In the starting in 1995 a freestanding version of Windows, Windows 95, was
released that incorporated many operating system features into it, using the
MS-DOS system only for booting and running old MS-DOS programs,
• In 1998, a slightly modified version of this system, called Windows 98 was
released. Nevertheless, both Windows 95 and Windows 98 still contain a large
amount of 16-bit Intel assembly language.
22
• Another Microsoft operating system is Windows NT (NT stands for
New Technology) which is a full 32-bit system.
• Windows NT was renamed Windows 2000 in early 1999. Microsoft
came out with yet another version of Windows 98 called Windows
Me (Millennium edition).
• Windows XP, Vista, 7, 8, …….
• The other major OS in the personal computer world is UNIX (and
its various derivatives). UNIX is strongest on workstations and
other high-end computers, such as network servers. On Pentium-
based computers, Linux is becoming a popular alternative to
Windows for students and increasingly many corporate users.
23
COMPUTER
ORGANISATION
1.Computer System Organization
• Computer-system operation
• One or more CPUs, device controllers connect through common bus providing access to shared
memory
• Concurrent execution of CPUs and devices competing for memory cycles
• CPU is a hardware in your PC and OS is the software. OS is a medium between you and the CPU. When
you give some input via input devices, the input is directed to the CPU as per the preassigned commands
in the OS.
Computer-System Operation
Synchronous Asynchronous
Interrupt Timeline
2. Storage Structure
• Main memory – only large storage media that the CPU can access
directly
• Typically volatile
• Ex- Random access memory (RAM), Cache,
CPU registers
• Application programs
• Don’t pertain to system
• Run by users
• Not typically considered part of OS
• Launched by command line, mouse click, finger poke
Operating System Structure
Operating System Structure
• General-purpose OS is very large program
• Various ways to structure ones
• Simple structure – MS-DOS
• More complex -- UNIX
• Layered – an abstrcation
• Microkernel -Mach
Simple Structure -- MS-DOS
• MS-DOS – written to
provide the most
functionality in the least
space
• Not divided into
modules
• Although MS-DOS has
some structure, its
interfaces and levels of
functionality are not
well separated
Non Simple Structure -- UNIX