Professional Documents
Culture Documents
CSC 333 Lecture Note 1
CSC 333 Lecture Note 1
OPERATING SYSTEMS
LECTURE NOTE I
Any operating system performs some basic tasks like recognizing the input data from a
keyboard, sending output to the display screen, keeping files and directories of the disk and
controlling the peripheral devices like printers. An operating system can perform a single
task or operation as well as multiple tasks or operations at any time.
Categories of Operating Systems
There are lots of operating systems available because there are many types of hardware
available. The first operating systems were created in the 1950s for mainframe and
specialized computers. Today’s personal computers however, can be run with a host of
different operating systems, and the most common ones are Windows or the Macintosh
Operating System.
- Personal Computers:
When personal computers (PC) were first introduced, in the mid-1970s, the operating system
was known as CP/M (Control Program/Monitor). CP/M had a text-based interface.
In 1981, MS-DOS (Microsoft - Disk Operating System) became the standard operating
system for personal computers. MS-DOS was continually updated over several years. In
1985, Microsoft introduced the first operating system with a graphic-user-interface for the
personal computer giving users the ability to have graphic-based menus and icons to click on.
Both MS-DOS and Windows were improved in parallel until the 1995 release of Windows 95
which was a combination of Windows and MS-DOS.
-Apple Computers:
Apple computers, now called Macs, short for Macintosh, have a similar history in that they
came into mainstream use in 1984 with a graphic-based operating system. Both Windows and
Mac OS continue to improve with new versions being released throughout the years.
-Mobile Operating Systems:
Most phones today are smart phones, which indicates their functionality extends beyond just
being able to make phone calls. These smart phones have operating systems referred to as
Mobile Operating Systems. The leading operating systems for smart phones are Android and
iOS. Android, owned by Google, was first released in 2008 with releases each year thereafter.
iOS, owned by Apple, was first released in 2007 and has been continually updated with new
features since then.
a) Batch Processing:
Early operating systems improved system throughput by processing jobs in batches rather
than individually. When a job finished, it would branch to a location in the “operating
system” that would contain software that would dump the state of the current job, and load
the next job. This greatly reduced the need for operator intervention. In the earliest systems,
this job transition software was encapsulated in a set of punched cards that were added to the
deck of cards that contained the user’s program.
Job control languages provided a way for programs to define their resource needs, such as
what tapes or card readers they need to use and what their anticipated run time is.
b) Operating Systems in 1954–1957 (A high-level language FORTRAN was developed):
With high-level languages, programmers no longer had to understand the architecture of a
computer. Early compilers, including early FORTRAN (FORmula TRANslator) had to fit in
1,024 12-character words and still leave enough room for data. It often took two hours to
compile a program because the tape units were kept busy refetching data.
e) Operating Systems in1961: (The dawn of minicomputers. Computing for the masses)
Digital Equipment Corporation (DEC) introduces the Programmed Data Processor 1 (PDP–
1). It’s a veritable bargain at $125,000-$250,000 as any competitive systems at that time
began at $1 million. Moreover, it needed no staff of attendants and operators. A lot more
companies could now afford computers. In fact, individual departments could have their own
computer.
f) Operating Systems in 1962 (Compatible Time-Sharing System (CTSS) from MIT -Time
sharing)
CTSS ran on the IBM 7094 with special hardware. It proved the value of interactive time
sharing systems and the value of sharing data and programs on-line. This system was a
precursor to the Multics operating system.
g) Operating Systems in 1963 (Burroughs Master Control Program (MCP) for the B5000
system)
-Virtual memory and multiprocessing
MCP was the first operating system written in a high-level language (note that this was not a
portable operating system; it only ran on the B5000 computer). The B5000 system running
MCP gave the user:
-Multiprogramming
-Multiprocessing
-Virtual storage (provides the illusion of a system having more physical memory than it really
does)
-Source language debugging capability
q) Operating Systems for 1975 CP/M: An operating system for 8-bit Intel-based PCs
The introduction of the BIOS (sort of) into Intel PC architectures
Gary Kildall of Digital Research gives the world CP/M (Control Program for
Microcomputers). It runs on Intel 8080 (and on the later 8085 and Zilog Z80) machines. It
was not targeted to any specific machine and was designed to be adaptable to any machine
with an 8080-family processor and a floppy disk drive. It was a rudimentary operating
system: a simple command interpreter, program loader, and file system manager. Only one
program ran at a time. When it was done, command transferred to the console command
processor code, which prompted the user for the next command. This operating system
consists of:
CCP: The Console Command Processor (command interpreter)
BDOS: The “Basic Disk Operating System”. This was the program loader and the software
that figured out how to manage and interpret the file system on a floppy-disk.
BIOS: This term should sound familiar. The Basic I/O System (BIOS). Since each machine
was different, you had to write the low-level functions yourself (get a character from an input
device, read a sector from the floppy disk, write a sector, write a character to an output
device, …).
The system also came with a few programs, such as an assembler, a line editor, and a
program to copy files. This is the sort of software people expected to come with their
computers at that time. CP/M was a direct precursor of MS-DOS. MS-DOS was derived from
QDOS, the Quick and Dirty Operating System, which was essentially a reverse-engineered
version of CP/M for the 8086 processor, Intel’s first 16-bit CPU. Microsoft bought QDOS
from Seattle Computer Products for $50,000. Gary Kildall could have had the IBM contract
for the IBM PC operating system, but he botched it. The first IBM PC came with a BASIC
interpreter in ROM and an assembler, a line editor, and a program to copy files.
Every part of your computer is the result of years of research and development. Parts that
were once hand made at a cost of thousands of man-hours are now mass produced for a
fraction of a rupee. Computer parts can be divided into two groups, hardware and software.
Hardware is any part of the computer that you can touch. The seeming miles of wires that get
tangled on your desk, the CD drive, the monitor are all hardware. Software is a set of
electronic instructions consisting of complex codes (Programs) that make the computer
perform tasks. Windows is a software, so is any other program that runs on your computer.
While there are thousands of parts even in the smallest computers that make up its hardware,
you are not required to know them all. You only need to know about basic computer
hardware.
Basic computer hardware consists of the following parts:
The CPU is considered the brain of the computer. It performs all types of data processing
operations, stores data, intermediate results and instructions (program). It controls the
operation of all parts of computer. A CPU has 3 components as listed below.
(A) CU (Control Unit)
The control unit (CU) is a component of a computer’s central processing unit (CPU) that
directs operations of the processor. It tells the computer’s memory, arithmetic logic unit and
input and output devices how to respond to a program’s instructions. However, the Control
Unit doesn’t process any data.
(B) ALU (Arithmetic Logic Unit)
Think of the ALU as the logical part of the brain. When any mathematical calculation or
decision/logic needs to be carried out, the instruction is passed on to the ALU. The ALU
thinks in bits (i.e. binary digits – ‘0’s and ‘1’s.)
It is made up of a group of memory locations built directly into the CPU called registers.
These are used to hold the data (binary information) that are being processed by the current
instruction.
(C) Memory
Primary memory is memory that is part of the computer itself and necessary for its
functioning. It consists of mainly two types of memories:
(i) Random Access Memory (RAM)
RAM is the internal memory of the CPU for storing data, program and program result. It is
read/write memory which stores data until the machine is working. As soon as the machine is
switched off, data is erased. RAM is volatile. Volatile means that the data stored in memory
is lost when we switch off the computer or if there is a power failure. Hence a backup
Uninterruptible Power System (UPS) is often used with computers. There are different types
of RAM available. Some of them are described below.
Dynamic Random Access Memory (DRAM): A type of physical memory used in most
personal computers. The term dynamic indicates that the memory must be constantly
refreshed or it loses its contents. This type of memory is more economical.
Static Random Access Memory (SRAM): A type of memory that is faster and less volatile
than DRAM, but requires more power and is more expensive. The term static is derived from
the fact that it does not need to be refreshed like DRAM.
Synchronous Dynamic Random Access Memory (SDRAM): A type of DRAM that has a
much higher processing speed.
(ii) Read Only Memory (ROM)
The memory from which we can only read but cannot write on it. This type of memory is
non-volatile. The information is stored permanently in such memories during manufacture. A
ROM, stores such instructions that are required to start a computer. This operation is referred
to as bootstrap. The different types of ROM are given below.
MROM (Masked ROM): The very first ROMs were hard-wired devices that contained a pre-
programmed set of data or instructions. These kinds of ROMs are known as masked ROMs
which are inexpensive. The MROM cannot be programmed by the user.
PROM (Programmable Read only Memory): PROM is read-only memory that can be
modified only once by a user. The user buys a blank PROM and enters the desired contents
using a PROM program.
EPROM (Erasable and Programmable Read Only Memory): The EPROM is a type of a
PROM which can be programmed by the user multiple times. EPROM is erased by exposing
it to ultra-violet light for a duration of up to 40 minutes. Usually, an EPROM eraser achieves
this function.
EEPROM (Electrically Erasable and Programmable Read Only Memory): The EEPROM is
programmed and erased electrically. It can be erased and reprogrammed about ten thousand
times. Both erasing and programming take about 4 to 10 milliseconds.
Floppy diskettes, hard disk, tapes and optical disks come under the category of external
storage devices or ancillary storage devices. These devices are very sensitive to
environmental conditions (humidity and temperature) as well as to external magnetic fields
and need to be stored carefully. They are not compulsory for the functioning of the computer
but are useful for expanding the computer’s memory.
(A) Floppy Disk
Floppy disks are primarily used on PCs. Information on a floppy disk is recorded in the
magnetized states of particles of iron oxides evenly placed upon concentric circles known as
tracks.
(B) Hard Disk
It is a non-removable enclosed magnetic disk included in most PCs. It contains a stack of
metal platters, each coated with iron oxide, that spin on a spindle and the entire unit is
encased in a sealed chamber.
(C) Magnetic Tape
This is plastic tape, usually made of Mylar that is coated with iron oxide, thereby enabling the
introduction (writing); retention (memory) and reading of magnetically recorded information.
The best use of tape storage is for data that you do not use very often.
(D) Optical Disc Drive
An optical disc drive (ODD) is a disk drive that uses laser light or electromagnetic waves for
reading or writing data to or from optical discs (normally CD-ROM). A CD-ROM is a pre-
pressed optical compact disc which contains data. The name is an acronym which stands for
“Compact Disc Read-Only Memory”. Computers can read CD-ROMs, but cannot write
to CD-ROMs which are not writable or erasable.
(E) USB
A USB flash drive, also commonly known as a USB drive, USB stick and a variety of other
names. It is a data storage device that includes flash memory with an
integrated USB interface. USB flash drives are typically removable and rewritable, and
physically much smaller than an optical disc.
(3) Peripherals
Peripheral devices are devices connected to the computer externally. If a peripheral device is
disconnected, the computer will still be able to work; only functions performed by this
peripheral device will not be available. Here are the most used types of peripheral devices:
(A) Keyboard
The most common and very popular input device which helps in inputting data to the
computer. It consists of keys that are capable of inputting alphabets, numbers and special
characters. You can also navigate using the keyboard and perform shortcut functions.
(B) Mouse
Mouse is the most popular pointing device and cursor-control device having a small palm
size box with a round ball at its base which senses the movement of mouse and sends
corresponding signals to CPU when the mouse buttons are pressed.
(C) Monitors
Monitors, commonly called as Visual Display Unit (VDU), are the main output device of a
computer. It forms images from tiny dots, called pixels that are arranged in a rectangular
form. The sharpness of the image depends upon the number of pixels.
(D) Printer
Printer is an output device, which is used to print information on paper.
Impact Printers: The impact printers print the characters by striking them on the ribbon which
is then pressed on the paper.
Non-Impact Printers: Non-impact printers print the characters without using ribbon. These
printers print a complete page at a time so they are also called as Page Printers. Laser
Printers, Inkjet Printers.
Drum Plotter: The paper is placed over the drum that rotates back and forth. A carriage
holding one or more pens is mounted horizontally across the drum. The carriage with the
pens moves horizontally over the paper. Each pen could be filled with different colours. This
plotter has the ability to produce colour pictures.
Flat Bed Plotter: In flat bed plotter, the paper does not move. The carriage holding the pens
should provide all motions. Inkjet plotters can also produce large drawings with different
colours.