Computer Generations
Computer Generations
There were machine codes and electric wired board languages used.
The main features of First Generation are:
Vacuum tube technology
Unreliable
Supported Machine language only
Very costly
Generate lot of heat
Slow Input/Output device
Huge size
Need of A.C.
Non-portable
Consumed lot of electricity
1
IBM-701
IBM-650
Second Generation
The period of second generation was 1959-1965.
This generation using the transistor were cheaper, consumed less power, more compact in size,
more reliable and faster than the first generation machines made of vacuum tubes. In this
generation, magnetic cores were used as primary memory and magnetic tape and magnetic disks as
secondary storage devices.
In this generation, assembly language and high-level programming language like FORTRAN, COBOL
were used.
There were Batch processing and Multiprogramming Operating system used.
Third Generation
The period of third generation was 1965-1971.
The third generation of computer is marked by the use of Integrated Circuits (IC's) in place of
transistors. A single IC has many transistors, resistors and capacitors along with the associated
2
circuitry. The IC was invented by Jack Kilby. This development made computers smaller in size,
reliable and efficient.
In this generation, Remote processing, Time-sharing, Real-time, Multi-programming Operating
System were used.
High-level language (FORTRAN-II TO IV, COBOL, PASCAL PL/1, BASIC, ALGOL-68, etc.) were used
during this generation.
Fourth Generation
The period of Fourth Generation was 1971-1980.
The fourth generation of computers is marked by the use of Very Large Scale Integrated (VLSI)
circuits. VLSI circuits having about 5000 transistors and other circuit elements and their associated
circuits on a single chip made it possible to have microcomputers of fourth generation. Fourth
Generation computers became more powerful, compact, reliable, and affordable. As a result, it gave
rise to personal computer (PC) revolution.
In this generation, Time sharing, Real time, Networks, Distributed Operating System were used.
All the higher level languages like C and C++, DBASE, etc., were used in this generation.
3
The main features of Fourth Generation are:
VLSI technology used
Very cheap
Portable and reliable
Use of PC's
Very small size
Pipeline processing
No A.C. needed
Concept of internet was introduced
Great developments in the fields of networks
Computers became easily available
AI includes:
Robotics
Neural networks
Game Playing
Development of expert systems to make decisions in real life situations.
4
Natural language understanding and generation.
5
Operating Systems
Section 1: Processes
Basics b) lack of paper in printer
1.What is operating system? c) connection failure in the network
a) collection of programs that manages d) all of the mentioned
hardware resources
Answer: d
b) system service provider to the application
programs
c) link to interface the hardware and 5. The main function of the command
application programs interpreter is
6
8. Which facility dynamically adds probes to a are called multiprogramming systems.
running system, both in user processes and in Uniprocessing means only one processor.
the kernel?
a) DTrace
2. In operating system, each process has its
b) DLocate own
c) DMap a) address space and global variables
d) DAdd b) open files
Answer: a c) pending alarms, signals and signal handlers
d) all of the mentioned
9. Which one of the following is not a real Answer: d
time operating system?
a) VxWorks
3. In Unix, Which system call creates the new
b) Windows CE process?
c) RTLinux a) fork
d) Palm OS b) create
Answer: d c) new
d) none of the mentioned
10. The OS X has Answer: a
a) monolithic kernel
b) hybrid kernel 4. A process can be terminated due to
c) microkernel a) normal exit
d) monolithic kernel with modules b) fatal error
Answer: b c) killed by another process
d) all of the mentioned
Processes Answer: d
1. The systems which allows only one process
execution at a time, are called
5. What is the ready state of a process?
a) uniprogramming systems
a) when process is scheduled to run after
b) uniprocessing systems some execution
c) unitasking systems b) when process is unable to run until some
task has been completed
d) none of the mentioned
c) when process is using the CPU
Answer: a
d) none of the mentioned
Explanation: Those systems which allows
more than one process execution at a time, Answer: a
7
Explanation: When process is unable to run
until some task has been completed, the
process is in blocked state and if process is 10. The address of the next instruction to be
executed by the current process is provided
using the CPU, it is in running state.
by the
a) CPU registers
6. What is interprocess communication?
b) program counter
a) communication within the process
c) process stack
b) communication between two process
d) pipe
c) communication between two threads of
same process Answer: b
b) local variables
c) return addresses 2) The number of processes completed per
unit time is known as ____.
d) PID of child process
a) Output
Answer: d
b) Throughput
c) Efficiency
9. Which system call returns the process
identifier of a terminated child? d) Capacity
a) wait Answer: b
b) exit
c) fork 3) The state of a process is defined by :
8
c) the activity to next be executed by the b) the number of processes in the ready
process queue
d) the current activity of the process c) the number of processes in the I/O queue
Answer: d d) the number of processes in memory
Answer: d
4) Which of the following is not the state of a
process ?
8) A single thread of control allows the
a) New process to perform :
b) Old a) only one task at a time
c) Waiting b) multiple tasks at a time
d) Running c) All of these
e) Ready Answer: a
f) Terminated
Answer: b 9) The objective of multi-programming is to :
(choose two)
a) Have some process running at all times
5) The Process Control Block is :
b) Have multiple programs waiting in a queue
a) Process type variable ready to run
b) Data Structure c) To minimize CPU utilization
c) a secondary storage section d) To maximize CPU utilization
d) a Block in memory
Answer: a and d
Answer: b
9
c) It is placed in the ready queue b) It selects which process has to be executed
next and allocates CPU
d) It is placed in the Job queue
c) It selects which process to remove from
Answer: a memory by swapping
d) None of these
3) When a process terminates : (Choose Two) Answer: c
a) It is removed from all queues 7) What is a short-term scheduler ?
b) It is removed from all, but the job queue a) It selects which process has to be brought
c) Its process control block is de-allocated into the ready queue
d) Its process control block is never de- b) It selects which process has to be executed
allocated next and allocates CPU
10
a) Blocked state 14) Which of the following need not
necessarily be saved on a context switch
b) Ready state between processes ? (GATE CS 2000)
c) Suspended state a) General purpose registers
d) Terminated state b) Translation look-aside buffer
Answer: b c) Program counter
d) All of these
11) In a multi-programming environment : Answer: b
a) the processor executes more than one
process at a time
14) Which of the following does not interrupt
b) the programs are developed by more than a running process ? (GATE CS 2001)
one person
a) A device
c) more than one process resides in the
memory b) Timer
d) a single user can execute many programs at c) Scheduler process
the same time
d) Power failure
Answer: c
Answer: c
11
Answer: a d) socket
Answer: c
Process Synchronization
1. Which process can be affected by other 5. A semaphore is a shared integer variable
processes executing in the system?
a) that can not drop below zero
a) cooperating process
b) that can not be more than zero
b) child process
c) that can not drop below one
c) parent process
d) that can not be more than one
d) init process
Answer: a
Answer: a
12
Answer: c 2) A parent process calling ___ system call will
be suspended until children processes
terminate.
9. A monitor is a module that encapsulates a) wait
a) shared data structures b) fork
b) procedures that operate on shared data c) exit
structure
d) exec
c) synchronization between concurrent
procedure invocation Answer: a
d) all of the mentioned
Answer: d 3) Cascading termination refers to
termination of all child processes before the
parent terminates __.
10. To enable a process to wait within the a) Normally
monitor,
b) Abnormally
a) a condition variable must be declared as
condition c) Normally or abnormally
b) condition variables must be used as d) None of these
boolean objects
Answer: a
c) semaphore must be used
d) all of the mentioned
4) With ……………. only one process can
Answer: a execute at a time; meanwhile all other
process are waiting for the processor. With
………….. more than one process can be
Process Creation running simultaneously each on a different
processor.
1) Restricting the child process to a subset of
the parent’s resources prevents any process a) Multiprocessing, Multiprogramming
from : b) Multiprogramming, Uniprocessing
a) overloading the system by using a lot of c) Multiprogramming, Multiprocessing
secondary storage
d) Uniprogramming, Multiprocessing
b) under-loading the system by very less CPU
utilization Answer: d
c) overloading the system by creating a lot of
subprocesses
5) In UNIX, each process is identified by its :
d) crashing the system by utilizing multiple
a) Process Control Block
resources
Answer: c b) Device Queue
c) Process Identifier
d) None of these
Answer: c
13
Answer: b
6) In UNIX, the return value for the fork
system call is __ for the child process and __
for the parent process. 2) Message passing system allows processes
to :
a) A Negative integer, Zero
a) communicate with one another without
b) Zero, A Negative integer resorting to shared data.
c) Zero, A nonzero integer b) communicate with one another by
resorting to shared data.
d) A nonzero integer, Zero
c) share data
Answer: c
d) name the recipient or sender of the
message
7) The child process can : (choose two) Answer: a
a) be a duplicate of the parent process
b) never be a duplicate of the parent process
3) An IPC facility provides atleast two
c) have another program loaded into it operations : (choose two)
14
b) the sender blocks until the receiver
receives the message
6) Which of the following are TRUE for direct
communication :(choose two) c) the sender keeps sending and the messages
dont wait in the queue
a) A communication link can be associated
with N number of process(N = max. number of d) the queue can store atleast one message
processes supported by system)
Answer: a and b
b) A communication link can be associated
with exactly two processes
c) Exactly N/2 links exist between each pair of 10) The Zero Capacity queue :
processes(N = max. number of processes a) is referred to as a message system with
supported by system) buffering
d) Exactly one link exists between each pair of b) is referred to as a message system with no
processes buffering
Answer: b and d c) is referred to as a link
d) None of these
7) In indirect communication between Answer: b
processes P and Q :
a) there is another process R to handle and
pass on the messages between P and Q 11) Bounded capacity and Unbounded
capacity queues are referred to as:
b) there is another machine between the two
processes to help communication a) Programmed buffering
15