OS 2 Marks
OS 2 Marks
OS 2 Marks
UNIT I INTRODUCTION 7
Main frame Systems, Desktop Systems – Multiprocessor Systems – Distributed
Systems – Clustered Systems – Real Time systems – Hand held Systems,
Operating Systems Structures: System Components – Operating System Services
- System calls - System Programs – System Design and Implementation - CPU
scheduling: Basic Concepts – Scheduling Algorithms.
UNIT II PROCESS MANAGEMENT 11
Process Concepts - Process Scheduling - Operation on Process - Co-Operating
process - Inter Process Communication - Threads: Multithreading Models -
Process Synchronization: The Critical Section Problem – Synchronization
Hardware - Semaphores – classical problem of Synchronization – Monitors -
Deadlock: Deadlock Characterization - Methods for handling Deadlocks - Deadlock
Prevention – Deadlock Avoidance - Deadlock Detection – Recovery from Deadlock.
UNIT III MEMORY MANAGEMENT 9
Background – Swapping - Contiguous Memory Allocation - Paging - Segmentation
– Segmentation with paging - Virtual Memory: Demand paging - Page
Replacement - Thrashing.
TEXTBOOKS
REFERENCES
1
GOD IS LOVE
UNIT - I
2
9. List the different categories of system calls.
System calls can be grouped into five major categories namely:
a. Process control
b. File management
c. Device management
d. Information maintenance
e. Communications
14.What is a dispatcher?
The dispatcher is the module that gives control of the CPU to the process
selected by the short-term-scheduler. This function involves:
a. Switching context
b. Switching to user mode
c. Jumping to proper location in the user program to restart that
program.
3
17.Define throughput.
The number of processes completed per time unit is called throughput.
25.What is aging?
Aging is a technique of gradually increasing the priority of processes that
wait in the system for along time.
4
27.Explain multilevel queue scheduling.
A multilevel queue scheduling algorithm partitions the ready queue into
several separate queues. The processes are permanently assigned to one
queue, generally based on some property of process, such as memory size,
process priority, or process type. Each queue has its own scheduling
algorithm. For example, separate queue might be used for foreground and
background processes. The foreground queue might be scheduled by an RR
algorithm, while the background queue is scheduled by an FCFS algorithm.
5
GOD IS LOVE
UNIT - II
1. What is a process?
A process is a program in execution. A process is more than the program
code, which is sometimes known as the text section. It also includes the
current activity, as represented by the value of the program counter and the
contents of the processor’s registers.
6
9. What is meant by inter process communication?
IPC provides a mechanism to allow processes to communicate and to
synchronize their actions without sharing the same address space. IPC is
particularly useful in a distributed environment where the communicating
processes may reside on different computers connected with a network.
7
15.List out the properties of a communication link in indirect
communication scheme.
In indirect communication scheme, a communication link has the following
properties:
a. A link is established between a pair of processes only if both members
of the pair have a shared mailbox.
b. A link may be associated with more than two processes.
c. A number of different links may exist between each pair of
communicating processes, with each link corresponding to one
mailbox.
8
20.What is a race condition?
A situation, where several processes access and manipulate the same data
concurrently and the outcome of the execution depends on the particular
order in which the access takes place, is called a race condition.
23.What is a semaphore?
A semaphore S is an integer variable that, apart from initialization, is
accessed only through two standard atomic operations: wait and signal. These
operations were originally termed P (for wait; from the Dutch proberen, to
test) and V (for signal; from verhogen, to increment).
24.What is a monitor?
A monitor is a concurrency construct that contains both the data and
procedures needed to perform allocation of a particular, serially reusable
shared resources or group of serially reusable shared resources.
9
27.What is a resource-allocation graph?
Deadlock can be described more precisely in terms of a directed graph
called a system resource-allocation graph. This graph consists of a set of
vertices V and a set of edges E. The set of vertices V is partitioned into two
different types of nodes P={P1, P2, . . . , Pn}, the set consisting of all the
active processes in the system, and R={R1, R2, . . . , Rm}, the set of all
resource types in the system.
A directed edge PiRj is called a request edge; a directed edge R iPi is
called an assignment edge.
10
34.How can the system recover from deadlock?
There are two options for breaking a deadlock. They are:
a. Abort one or more processes to break the circular wait.
b. Preempt some resources from one or more of the deadlocked
processes.
35.What are the ways of terminating a process during deadlocks?
To eliminate deadlocks by aborting a process, the following two methods
can be used:
a. Abort all deadlocked processes.
b. Abort one process at a time until the deadlock cycle is eliminated.
11
GOD IS LOVE
UNIT - III
5. Define swapping.
A process need to be in memory to be executed. A process, can be
swapped temporarily out of memory to a backing store, and then brought
back into memory for continued execution. This technique is known as
swapping.
12
8. What is the purpose of relocation register and limit register?
The relocation register contains the value of the smallest physical address;
the limit register contains the range of logical addresses (for example,
relocation = 100040 and limit = 74600). With relocation and limit registers,
each logical address must be less than the limit register; the MMU maps the
logical address dynamically by adding the value in the relocation register. This
mapped address is sent to memory.
14.Define frames.
Physical memory is broken into fixed-sized blocks called frames.
15.Define pages.
Logical memory is broken into blocks of the same size called pages.
13
17.Explain the term page-table base register.
The page table is kept in main memory, and a page-table base register
(PTBR) points to the page table.
20.Explain segmentation.
The logical-address space is a collection of segments. The process of
mapping the logical address space to the physical address space using a
segment table is known as segmentation.
14
26.What is a process?
A process is a program in execution. A process is more than the program
code, which is sometimes known as the text section. It also includes the
current activity, as represented by the value of the program counter and the
contents of the processor’s registers.
15