Unit 1 Chap - 1
Unit 1 Chap - 1
1
Operating System Chapter 1
Q2 FIRST Generation
Year- 1945-55
Name- Vacuum tubes and plugboards
Hardware-
1. Vacuum tubes circuitry for processor-
• Vacuum tubes were used as a switch in order to process digital data. Huge
machines with more than 20,000 vacuum tubes used to occupy entire
room.
• These computers were too much slower than even a cheapest PC
available today
• Magnetic drums for memories which were very bulky.
Software/programming-
• Machine language programming by wiring circuits using plug boards
• High level and assembly level languages were unknown; concept of OS
was not introduced.
Input -through plug boards or punched cards
Output - displayed as printouts.
Applications- numerical calculations , scientific applications
Advantages- fastest computing device in that era
Disadvantages- enormous in size, complex, no user interface, large heat generation and
super-expensive
Examples- ENIAC, ADVAC, IBM 701, IBM 704, UNIVAC
Q3 SECOND GENERATION
2nd Generation OS-:
Year- 1955-65
Name- Transistors and Batch Systems, also called mainframes
Hardware-
• Transistors circuitry for processor and Magnetic tapes as memory
• With invention of transistors, computer became more reliable and
comparatively smaller than 1st generation.
• These computers were kept in special AC computer rooms and professional
operators were kept to run them.
• To run a job, programmer need to write program on paper (FORTRAN or
assembly code), then punch it on cards. But lot of time was required to
execute a single job.
• Solution- Batch System
Collect multiple jobs (punched cards) together and then read them onto
magnetic tape using small inexpensive computer IBM 1401. For actual
numerical and scientific processing use big expensive computer with more
capacity IBM 7094
Software- Assembly language programming/ high level language FORTRAN
FORTRAN- Formula Translation- Imperative programming language developed
specially for numerical and scientific calculations.
Input -through punched cards
Output - displayed as printouts.
Applications- numerical calculations , scientific applications, printing jobs
Advantages- smaller, faster, cheaper, energy efficient and reliable than 1st
Generation
Disadvantages- Expert human operation, huge size
Examples- IBM 1620, IBM 7090, IBM 1401, IBM 7094
2
Operating System Chapter 1
Q4 Third Generation
3rd Generation OS-:
Year- 1965-80
Name- ICs and Multiprogramming
- Hardware- IC- multiple transistors, capacitors, resistors on single silicon chip
- Maximum memory(RAM and Hard disk), high processor speed, I/O devices
- Software- High level language programming like C,FORTRAN
- Operating System- OS 360
- Input -through keyboard, punched cards.
- Output - displayed on monitors.
Applications- big scientific calculations and massive data processing
- Advantages-
o Smaller
o faster because of semiconductor,
o cheaper, energy efficient and reliable
o OS and interface
o Multiprogramming-
▪ In 2nd generation, when current job is paused to wait for tape or
other I/O operation, CPU sat idle. So lot of CPU time is wasted.
▪ Solution- Partition memory into several parts, and store
different job in each partition.
▪ If job one job is waiting for I/O, CPU starts executing next job
instead of sitting idle.
o SPOOLING- Simultaneous Peripheral Operation
On-Line
▪ Simultaneous Peripheral Operation On
Line
▪ When running job is finished, that job is
removed from memory by OS.
▪ And new job from the disk is loaded
into the empty memory partition.
▪ This will increase CPU efficiency and
speed of operation.
o Time sharing and remote processing
▪ Each user has online terminal and each user can access CPU
remotely. CPU time is shared by each of the users.
Q4 Fourth Generation
4th Generation OS-:
Year- 1980-Present
Name- Personal Computers and Microprocessor
Hardware-
Microprocessor (VLSI technology)
- Semiconductor RAM, Magnetic hard disk
Software-
- High level language programming languages
- e.g. C, C++, java, asp.net
Operating systems- MS-DOS, FreeBSD, MS-Windows, UNIX, LINUX, MAC OS
3
Operating System Chapter 1
- Computers supported Graphical User Interface (GUI). Macintosh was the first 4th
generation computer with GUI developed by Apple.
Input -through keyboard, mouse
Output - displayed on monitors, printers, speaker
Advantages-
• Small, compact computers
• Fastest processor, fast memory access
• cheap, energy efficient and reliable
• Multiprogramming
• Time sharing and remote processing
• Resource sharing
Examples- IBM ES (9000)
Q5 Fifth Generation
Year- 1990-Present
Name- Mobile computers
Hardware-
• Microprocessor (VLSI technology)
• Handheld Computers and smartphone
• Combining telephony and computing in phone like device
Software-
• Java programming
• High level language programming languages
Operating systems- Android, iOS, Symbians, RIM’s Blackberry OS
Input – Touch screen
Output - displayed on Screen or PDA
Advantages-
• Small, compact computers
• Fastest processor, fast memory access
• Portable
• Email surfing, navigation, games etc in a small device
-
Q6 Disk Structure
4
Operating System Chapter 1
• A disk consists of one or more metal platters that rotate at 5400, 7200, 10,800
RPM or more. A mechanical arm pivots over the platters from the corner
• Each of the heads can read an annular region called a track.
• Together, all the tracks for a given arm position form a cylinder.
• Each track is divided into some number of sectors, typically 512 bytes per sector.
5
Operating System Chapter 1
7. Lseek has three parameters: the first is the file descriptor for the file, the second is
a file position, and the third tells whether the file position is relative to the
beginning of the file, the current position, or the end of the file.
8. For each file, UNIX keeps track of the file mode (regular file, special file, directory,
and so on), size, time of last modification, and other information. Programs can ask
to see this information via the stat system cal
6
Operating System Chapter 1
1. In the monolithic approach the entire operating system runs as a single program in
kernel mode
2. The operating system is written as a collection of procedures, linked together into
a single large executable program.
3. Each procedure in the system is free to call any other process
4. Being able to call any procedure makes the system very efficient
5. No information hiding —every procedure is visible to every other procedure
6. Eg MS DOS and LINUX
7. This organization suggests a basic structure for the operating system:
➢ Main Function- invokes requested service procedure
➢ Service Procedures- carry out system calls
➢ Utility functions- Help service procedures to perform certain tasks
8. Disadvantage:
➢ Difficult and complicated structure
➢ A crash in any of these procedures will take down the entire operating
system
7
Operating System Chapter 1
6. Layer 2 handled communication between each process and the operator console
7. Layer 3 took care of managing the I/O devices and buffering the information
streams
8. Layer 4 was where the user programs were found.
9. Layer 5 : The system operator process was located.
Q13 MICROKERNELS
1. This method structures the operating system by removing the all non essential
components from the kernel and implementing it in user space
2. The basic idea behind the microkernel design is to achieve high reliability by
splitting the operating system up into small, well-defined modules
3. the microkernel—runs in kernel mode
4. The main function of microkernel is to provide a communication facility between
the client program and various services that are also running in user space
5. All new services are added to the user space and the kernel don’t need to be
modified
6. Microkernel provides high security and reliability as most of the services are
running in user space , if a service fails the rest operating system remains untouched
7. Disadvantage :
Performance decrease due to increased system function overhead
1. The servers, each of which provides some service, and the clients, which use these
services. This model is known as the client-server model.
2. Since clients communicate with servers by sending messages, the clients need not
know whether the messages are handled locally on their own machines, or whether
they are sent across a network to servers on a remote machine.
8
Operating System Chapter 1
3. As far as the client is concerned,: requests are sent and replies come back.
4. Thus the client-server model is an abstraction that can be used for a single machine
or for a network of machines.