Wa0003.
Wa0003.
Wa0003.
Model Answer
Q. S. Q. Answer Marking
No. No. Scheme
1 Solve any FOUR of the following: 12M
a Define degree of multiprogramming. Give an example. 02M
Ans. The number of processes present in main memory is called as 1 Mark for
degree of multiprogramming. correct
definition
Example: Degree of multiprogramming is 4.
1 Mark for
example
b. What are dual modes of OS? Enlist any two system calls for 02M
each Process control and File Management
Ans. We have two modes of the operating system: user mode and 1 Mark for
kernel mode. Mode bit is required to identify in which particular correct modes
mode the current instruction is executing. If the mode bit is 1, it
operates user mode, and if the mode bit is 0, it operates in kernel 1 Mark for
mode. each type
System calls for Process control system call
create process, terminate process
end, abort
load, execute
get process attributes, set process attributes
System calls for File Management
create file, delete file
open, close file
read, write, reposition
get and set file attributes
c. Differentiate between GUI and CLI (Any 4 points). 02M
Ans. ½ mark for
each point
OR
Applications:
1. Flight Control System
2. Simulations
3. Industrial control
4. Military applications
e. What is the usage of OS tools: User management and Device 02M
management?
Ans. 1 Mark each
Device management (two points
-Installing device and component level drivers and related for each
software. management
-Configuring a device so it performs as per user expectations. with ½ marks
each)
User management
- OS can be single user or multiuser.
- In case of multiuser, OS needs to take care of level of rights
and privileges.
- OS provides facility of addition, deletion, modification of
user accounts, etc.
f. Enlist OS Services (Any 4) 02M
Ans 1.User Interface ½ Mark for
2. Program execution any correct
3. I/O operations four Services
4.File system manipulation
5.Communication
6.Error detection
7.Resource allocation
8.Accounting
9.Protection & security
When CPU switches to another process, the system must save the
state of the old process and load the saved state for the new
process via a context switch
The more complex the OS and the PCB the longer the context
switch
File Management
A file is a collection of related information stored on secondary
storage.
Processes can access the files as per their necessities.
After process termination, information in file should remain
retained and should vanish.
2. Message Passing
In this model, communication takes place by exchanging
messages between cooperating processes.
It allows processes to communicate and synchronize their action
without sharing the same address space.
It is particularly useful in a distributed environment when
communication process may reside on a different computer
connected by a network.
Communication requires sending and receiving messages
through the kernel.
The processes that want to communicate with each other must
have a communication link between them. Between each pair of
processes exactly one communication link.
d. Differentiate between long term and short term schedulers 04M
(Any 4 points).
Ans 1 Mark for
each correct
point
Batch OS
There is a less stress on processor and it involves less user
interaction. (Batch- A set of jobs with similar needs)
The computer operator can delay or prioritize different
batches easily depending on cicrumstances.
There is a very less interaction between user and computer.
No mechanism to prioritize processes.
CPU is often idle.
Due to lack of protection scheme, one batch job can affect
pending jobs.
Example:
Payroll run for a company
Gas and electricity bill produced by a batch system.
Bank statements.