PART A
1. Define operating system.
An operating system is a program that manages the computer hardware. it act as an intermediate
between a users of a computer and the computer hardware. It controls and coordinates the use of the
hardware among the various application programs for the various users.
2. Define context switch.
Switching the CPU to another process requires saving the state of the old process and loading the
saved state for the new process. This task is known as context switch.
3. What is critical section problem?
Consider a system consists of 'n' processes. Each process has segment of code called a
critical section, in which the process may be changing common variables, updating a table,
writing a file. When one process is executing in its critical section, no other process can
allowed to execute in its criticalsection.
4. Define monitor. What does it consist of?
High-level synchronization construct is the monitor . A monitor is characterized by a set of
programmer-defined operators. The representation of a monitor type consists of declarations of
variables whose values define the state of an instance of the type, as well as the bodies of
procedures or functions that implement operations on the type.
The seek time is the time for the disk arm to move the heads to the cylinder containing the desired
sector. The rotational latency is the additional time waiting for the disk to rotate the desired sector to
the disk head.
Part B - (5 x 16 = 80)
1.
11.
(a) i) What is thread and what are the advantages of threads? Explain multi-
1.Many-to-One Model
2. One-to-one Model
3. Many-to-Many Model
14.
ii)
IPC provides a mechanism to allow processes to communicate and to syn- chronize their actions
without sharing the same address space. IPC is particu- larly useful in a distributed environment
where the communicating processes may reside on different computers connected with a network.
Message-Passing System
Naming
Direct Communication
In- direct Communication
Synchronization
Buffering
(or)
14. (b) i) What is a process? Describe the operation on a process in detail.
(8)
2.
ii) What is a remote procedure call? Describe the steps involved in executing a remote
procedure call.
(8)
Remote Procedure Calls
The RPC was designed as a way to abstract the procedure-call mechanism for use between systems
with network connections.
3.
(a) Write in detail about FCFS, SJF, Priority and RR Scheduling Algorithms with an
4.
example.
(16)
5.
(or)
6.
(b) i)What is deadlock detection and recovery? Describe the methods for recovery
deadlock.
(10)
7. ii) Discuss about the Linux real time scheduling strategies in detail.
from
(6)
8.
9.
10. (a) Consider the following page reference string: 1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2,1,2,3,and 6.
11.
How many page faults would occur for the page replacement algorithms, assuming
three
12.
and four as frame size? Assume all the frames are initially empty. Compare the results of
13.
(16)
14.
15. (or)
16.
(10)
21. (or)
22.
23.
ii) Explain various file allocation techniques in detail with their relative advantages
and
(8)
disadvantages.
24.
25. 15. (a) i) Describe the life cycle of an I/O request with an example.
(8)
26.
27. (or)
28. (b). i) Explain the various tertiary storage devices with their advantages and limitations.
(8)
29.
ii) Given the following queue - 95, 180, 34, 119, 11, 123, 62, 64 with the Read-write
head initially at the track 50 and the tail track being at 199. Discuss the FCFS,
SSTF,
SCAN, C-SCAN and C-LOOK algorithms and calculate the total head
movements. (8)
30.
31.
32.
33.
34.