Unit 1 Model Ans
Unit 1 Model Ans
Q. Sub Marking
No Q.N. Answer Scheme
Ans. An operating system is defined as, “a program that acts as an interface between the Correct
user and the computer hardware and controls the execution of all kinds of programs”. Definition
2M
OR
An operating system is defined as, "the system software that helps in managing the
resources of a computer as well as provides a platform for the application programs
running the computer".
OR
Operating system is a, "set of programs which control all the computer's resources and
provide an environment in which users can develop application programs".
b) Define real time operating system. List its any four applications of it. 2M
Real time Operating System:
Ans. A real time system has well defined fixed time constraints. Processing
should be done within the defined constraints -Hard and Soft real time
system. 1 Mark :-
Definition
OR 1 Mark :-
The real-time operating system used for a real-time application means for any 4
for those applications where data processing should be done in the fixed correct
and small quantum of time. application
Types of real time operating system
1. Hard real-time
2. Soft real-time
Applications:
1.Flight Control System
2.Simulations
3.Industrial control
4.Military applications
c) Differentiate between Multi programmed and Multitasking operating 2M
system (Any two points)
Ans The operating system may be observed from the viewpoint of the user or the
system. It is known as the user view and the system view. There are mainly two
types of views of the operating system. These are as follows:
1) Users View
• Most computer users sit in front of a PC, consisting of a monitor, keyboard,
mouse and system unit. Such a system is designed for one user to monopolize its
resources, to maximize the work that the user is performing. In this case, the
operating system is designed mostly for ease of use, with some attention paid to
performance, and none paid to resource utilization.
• Some users sit at a terminal connected to a mainframe or minicomputer. Other
users are accessing the same computer through other terminals. These users share
resources and may exchange information. The operating system is designed to
maximize resource utilization.
• Other users sit at workstations, connected to networks of other workstations and
servers. These users have dedicated resources at their disposal, but they also Relevant
share resources such as networking and servers Explanation
3 Marks
• Recently, many varieties of handheld computers have come into fashion. These diagram 1
devices are mostly standalone, used singly by individual users. Some are mark
connected to networks, either directly by wire or through wireless modems.
• Due to power and interface limitations, they perform relatively few remote
operations. These operating systems are designed mostly for individual usability,
but performance per amount of battery life is important as well.
• Some computers have little or no user view. For example, embedded computers
in home devices and automobiles may have numeric keypad, and may turn
indicator lights on or off to show status, but mostly they and their operating
systems are designed to run without user intervention.
2) System View
• We can view an operating system as a resource allocator. A computer system
has many resources - hardware and software - that may be required to solve a
problem. The operating system acts as the manager of these resources.
An operating system can also be viewed as a control program that manages the
execution of user programs to prevent errors and improper use of the computer. It
is especially concerned with the operation and control of I/O devices.
•We have no universally accepted definition of what is part of the operating
system. A simple viewpoint is that it includes everything a vendor ships when you
order “the operating system.”
•A more common definition is that the operating system is the one program
running at all times on the computer (usually called the kernel), with all else being
application programs. This is the one that we generally follow.
Ans
Ans
( Figure of Multitasking Operating system )
Ans
1) Multiprocessor operating systems are used in operating systems to boost the
performance of multiple CPU's within a single computer system.
2) Multiple CPU are linked together so that a job can be divided and executed Relevant
more quickly. Explanation
3 Marks
3) When a job is completed, the results from all CPU's are compiled to provide diagram 1
the final output. Mark
4) Jobs were required to share main memory, and they may often share other
system resources.
5) Multiple CPU's can be used to run multiple tasks at the same time, for
example, UNIX.
6) In a multiprocessing OS, a motherboard can handle many processors.
7) Processors can also be utilized as a part of a multiprocessing system.
Types of Multiprocessor Operating system:
1)Asymmetric Multiprocessing:
In this system, a specific task is assigned to each processor.
The system has one master processor and others are slave processors.
A master processor controls the system and slave processors follow the
instructions of master or perform their predefined task.
2) Symmetric Multiprocessing:
In symmetric multiprocessing, there is no master-slave concept used.
All the processors are peer processors.
They perform all tasks within the operating system
Advantages of multiprocessing operating system are:
1) Increased reliability: Due to the multiprocessing system, processing tasks
can be distributed among several processors. This increases reliability as if one
processor fails; the task can be given to another processor for completion.
2) Increased throughout: As several processors increase, more work can be
done in less .
3) The economy of Scale: As multiprocessors systems share peripherals,
secondary storage devices, and power supplies, they are relatively cheaper
than single-processor systems.
Disadvantages of Multiprocessing operating System:
1) Operating system of multiprocessing is more complex and sophisticated as it
takes care of multiple CPU's at the same time.
2) It is difficult to balance the workload among processors.
4M
Ans In time sharing system, the CPU executes multiple jobs by switching
among them. The switches occur so frequently that the users can
interact with each program while it is running. It includes an
interactive computer system which provides direct communication
between the user and the system. A time-sharing system allows many
users to share the computer resources simultaneously. The time
sharing system provides the direct access to many users where CPU
time is divided among all the users on scheduled basis. The operating
system allocates a time slice to each user. When this time is expired,
it passes control to the next user on the system. The time allowed is
extremely small and the users are given the impression that each of
them has their own CPU and they are the sole owner of the CPU. In
this time slice each user gets attention of the CPU. The objective of
time- sharing system is to minimize response time of process .
Example: The concept of time-sharing system is shown in figure:
Relevant
Explanation
3 Marks
diagram 1
Mark
In above figure, the user 5 is active but user 1, user 2, user 3, and user
4 are in waiting state whereas user 6 is in ready status.
Advantages of Time-sharing operating systems are as follows
1) Provides the advantage of quick response.
2) Avoids duplication of software.
3) Reduces CPU idle time.
Disadvantages of Time-sharing operating systems are as follows
1) Problem of reliability.
2) Question of security and integrity of user programs and data.
3) Problem of data communication.
h) What is real time system? Explain its types. 4M
Ans
Ans
Kernel: The kernel is the heart of the operating system. It interacts with the
hardware and most of the tasks like memory management, task scheduling and
file management. Relevant
Explanation
Shell: The shell is the utility that processes your requests. When you type in a 3 Marks
command at your terminal, the shell interprets the command and calls the diagram 1
program that you want. The shell uses standard syntax for all commands. C Mark
Shell, Bourne Shell and Korn Shell are the most famous shells which are
available with most of the Unix variants.
Commands and Utilities: There are various commands and utilities which you
can make use of in your day-to-day activities. cp, mv, cat and grep, etc. are few
examples of commands and utilities. There are over 250 standard commands plus
numerous others provided through 3rd party software. All the commands come
along with various options.
Files and Directories − All the data of Unix is organized into files. All files are
then organized into directories. These directories are further organized into a
tree-like structure called the file system.
Ans
Ans
Any four
points 1M
each
Ans
Key LINUX UNIX
Any four
points 1M
each