Operating System: Unit - 1
Operating System: Unit - 1
Operating System
1. Why interrupt is important in operating system?
Ans: - Interrupts are signals sent to the CPU by external devices, normally I/O devices. They tell the CPU to
stop its current activities and execute the appropriate part of the operating system.
Or
An “interrupt” is an event external to the CPU that causes a change in program control flow. Interrupts are
requested by external devices to notify the Operating System of something it must handle.
Diagram:
2. What is Trap?
Ans: - The operating system is driven by interrupts.
This means that:
I. If there are no processes to execute, no I/O devices to service, and no users to whom to respond, an
operating system will sit quietly, waiting for something to happen.
II. Events are almost always signalled by the occurrence of an interrupt or a trap, a trap is a software
interrupt generated when an invalid instruction is given or by a specific request from a user program that
an operating system service is performed. Then it returns control to the OS.
III. An example of an invalid instruction is when a program is trying to access another program's memory
space without having a permission or division by zero.
3. What is Throughput?
Ans: -
i. The amount of data transferred from one place to another or processed in a specified amount of time.
ii. It is used to measure the performance of hard drives and RAM, as well as Internet and network
connections.
iii. Typically, throughputs are measured in kbps, Mbps and Gbps.
iv. The throughput of a computer depends on such factors as the speed of the CPU (central processing
unit), the amount of memory, the performance of the operating system and the means of measurement.
4. Difference between single user operating system and Multiuser Operating System?
Ans: -
SINGLE-USER OPERATING SYSTEM MULTI-USER OPERATING SYSTEM
A Single-User Operating System is a system in A Multi-User Operating System is a system that
which only one user can access the computer allows more than one user to access a computer
system at a time. system at one time.
Single user Operating System has two types: It is of three types: time-sharing operating
Single user Single task Operating System and system, distributed operating system and
Single user Multi task Operating System. multiprocessor system.
This type of operating system is used for single This type of operating system is used for
user. multiple users.
Single-User Operating System is simple. Multi-User Operating System is complex
It supports standalone systems. It doesn’t support standalone systems.
In this, there is no need to take care of balance In this, we have to take care of balance between
between users. users so that if one problem arises with one user
does not affect other users also.
If another user wants to access the computer There is no need to wait for accessing the
resources, then he/she has to wait until the computer resources.
current process completes.
Examples: Windows, Apple Mac OS,MS DOS. Examples: UNIX, Linux and Mainframes.