You are on page 1of 28

INSTITUTE OF AERONAUTICAL ENGINEERING

(Autonomous)
Dundigal, Hyderabad - 500 043

COMPUTER SCIENCE AND ENGINEERING


QUESTION BANK

Course Title OPERATING SYSTEMS


Course Code ACSC12
Program B.Tech
Semester IV CSE
Course Type Core
Regulation IARE - R20
Theory Practical
Course Structure Lecture Tutorials Credits Laboratory Credits
3 - 3 - -
Course Coordinator Ms. A. Harika, Assistant Professor

COURSE OBJECTIVES:
The students will try to learn:

I The principles of operating system, its services and functionalities with the
evolution of operating systems.
II The concepts of processes, inter-process communication, synchronization and
scheduling used in process management.
III The concepts related to memory management, paging, and segmentation including
protection and security mechanisms used in computer systems.
IV The deeper insights into the reasons for deadlock occurrences, techniques used for
deadlock detection, prevention and recovery.

COURSE OUTCOMES:
After successful completion of the course, students should be able to:
CO 1 Describe the importance of computer system resources for Remember
designing operating systems security policies.
CO 2 Demonstrate process control blocks and threads used in Apply
scheduling the process.
CO 3 Classify the importance of system calls to different Applications Understand
Programming Interface in developing operating systems.
CO 4 Construct the critical section problem used for process Understand
synchronization.
CO 5 Distinguish logical and physical address space applied in process Apply
management
CO 6 Construct various page replacement algorithms applied for Apply
allocation of frames.
CO 7 Describe the use of storage management policies with respect to Apply
different storage management technologies.
CO 8 Classify the different access methods used for file management Understand
systems.
CO 9 Demonstrate the working of operating systems as a resource Apply
manager and file system manager used for implementing different
parts of operating systems.
CO 10 Describe the concept of free space management to improve Apply
efficiency and performance of operating systems.
CO 11 Make use of various methods of handling deadlocks used for Apply
system models.
CO 12 Make use of access rights to implement language based Apply
protection.

QUESTION BANK:
MODULE I
DESIGN AND ANALYSIS OF ALGORITHMS
PART A-PROBLEM SOLVING AND CRITICAL THINKING QUESTIONS
Q.No QUESTION Taxonomy How does this subsume CO’s
the level
1 Distinguish between batch Apply This would require the CO 2
systems and time sharing learner to remember,
systems. understand and apply about
the evolution of OS
2 Distinguish between hard Understand This would require the CO 3
real time systems and soft learner to recall the hard
real time systems real time systems and soft
real time systems
3 What are the three main Understand This would require the CO 3
purposes of an operating learner to recall the OS
system?
4 What is a distributed Apply This would require the CO 2
operating system? What are learner to recall the
the advantages of a evolution systems.
distributed operating
system?

Page 2
5 Explain why you think that Understand This would require the CO 3
idleness in CPU occurs. learner to recall the CPU
occurs.
6 Explain the difference Understand This would require the CO 3
between interrupt and learner to recall the
exception. interrupt and exception.
7 Differentiate between Understand This would require the CO 3
tightly coupled systems and learner to recall the
loosely coupled systems. Coupled systems
8 Explain Is OS is a resource Understand This would require the CO 3
manager. If so justify your learner to recall the OS is a
answer resource manager.
9 Discuss the view of an Understand This would require the CO 3
operating system as a learner to recall the resource
resource manager. manager.
10 Define essential properties Understand This would require the CO 3
of the following types of learner to recall the types of
Operating system: i) Batch OS.
operating system ii)
Interactive operating system
iii) Time sharing operating
system iv) Real time
operating system v)
Distributed operating
system.
PART B-LONG ANSWER QUESTIONS
1 Define an operating system. Remember This would require the CO 2
State and explain the basic learner to recall the OS
functions or services of an
operating system
2 Explain the differences Understand This would require the CO2
between multiprogramming learner to recall the
and time- sharing systems multiprogramming and
time- sharing systems
3 Explain how operating Understand This would require the CO 1
system services are provided learner to recall the system
by system calls. calls.
4 Describe the operating Remember This would require the CO 2
system structures. learner to recall the OS
structures.
5 Distinguish between user Remember This would require the CO 3
mode and kernel mode learner to recall the
operations of the operating operations of the Operating
System Systems

Page 3
6 Define the essential Understand This would require the CO 2
properties of the operating learner to recall the OS
systems.
7 Explain the architecture of Understand This would require the CO 3
an operating system. learner to recall the
architecture of an OS
8 Distinguishbetween Remember This would require the CO 3
multiprogramming, learner to recall the multi
multitasking and programming and
multiprocessing. multitasking and
multiprocessing.
9 Describebriefly about Batch Understand This would require the CO 2
programming learner to recall the Batch
programming.
10 Define MultiTasking and Remember This would require the CO 1
MultiThreading? learner to recall the
multitasking and
Multithreading
11 Draw and explain the Understand This would require the CO 3
architecture of windows learner to recall the UNIX
2000 and traditional UNIX
12 State the differences Understand This would require the CO 2
between system call and learner to recall the System
system program. program.
13 Distinguish between the Understand This would require the CO 2
client-server and learner to recall the Peer to
peer-to-peer models of peer models
distributed systems.
14 Explain types of System Understand This would require the CO 3
calls. learner to recall the System
calls
15 Describe the kernel Understand This would require the CO 3
structure of the operating learner to recall the Kernel
system. structure of OS
16 Discuss about evolution of Understand This would require the CO 1
operating system learner to recall the
Evolution of OS
17 Explain about system call Understand This would require the CO 3
between user mode and learner to recall the Use
kernel mode. mode and kernel mode.
18 Compare Understand This would require the CO 2
Multiprogramming and learner to recall the
Multitasking Multiprogramming and
Multi Tasking

Page 4
19 Explain various types of Understand This would require the CO 2
computer systems? learner to recall the Types
of computer system
20 Compare user mode and Understand This would require the CO2
kernel mode. learner to recall the User
mode and Kernel mode
PART-C - SHORT ANSWER QUESTIONS
1 Define Operating Systems. Remember Recall the definition of CO 2
Operating systems
2 Define Distributed Systems. Understand Remember the definition of CO2
Distributed Systems
3 How user mode is different Understand This would require the CO 1
from kernel mode? learner to recall about the
kernel mode
4 Define Multiprocessor Remember This would require the CO 2
system? learner to recall about the
multiprocessor system
5 Define System call? Remember This would require the CO 3
learner to recall the system
call.
6 Define interrupt? Understand This would require the CO 2
learner to recall the
interrupt
7 Define Time Sharing Understand This would require the CO 3
Systems? learner to recall the Time
sharing system
8 Write the various types of Remember This would require the CO 3
OS components? learner to recall the types of
OS components
9 List any four functions of Understand This would require the CO 2
the Operating system? learner to recall the
Functions of OS
10 Define Kernel. Remember This would require the CO 1
learner to recall the Kernel
11 Define a real time operating Understand This would require the CO 3
system. learner to recall the RTOS
12 Define Virtual Machine? Understand This would require the CO 2
learner to recall the VM
13 Explain how protection is Understand This would require the CO 2
provided for the hardware learner to recall the
resources by the operating hardware resources by OS
system.

Page 5
14 Discuss about batch Understand Recall the batch systems CO 3
systems?
15 Explain about a parallel Understand This would require the CO 3
distributed system? learner to recall and
understand about
distributed system
16 Discuss about OS Understand This would require the CO 1
architecture? learner to recall the OS
architecture.
17 Discuss about protection Understand This would require the CO 3
and security by OS? learner to recall the
protection and security
18 What are the advantages of Understand This would require the CO 2
layered structure? learner to recall the Layered
Structure
19 Define Virtual Memory? Understand This would require the CO 2
learner to recall the VM
20 Describe the use of fork () Remember This would require the CO3
and exec () system calls? learner to recall the System
calls
MODULE II
SEARCHING AND TRAVERSAL TECHNIQUES
PART A-PROBLEM SOLVING AND CRITICAL THINKING
Q.No QUESTION Taxonomy How does this subsume CO’s
the level
1 Suppose we have a single Remember This would require the CO 2
processor system, and jobs learner to recall the process
arrive at a rate of 10 jobs a
Seconds, suppose each job
takes an average of 50
milliseconds to complete.
Assure that both
distributions are
exponential. State the
expected number of jobs in
the system and the average
time in the system.

Page 6
2 Consider the following table Understand This would require the CO2
of arrival time and burst learner to recall the process.
time for three processes P0,
P1 and P2. Process Arrival
time Burst Time P0 0 ms 9
ms P1 1 ms 4 ms P2 2 ms 9
ms The pre-emptive
shortest job first scheduling
algorithm is used.
Scheduling is carried out
only at arrival or completion
of processes. What is the
average waiting time for the
three processes?
3 What are the 3 different Understand This would require the CO 1
types of scheduling queues? learner to recall the
Scheduling queues.
4 Explain the advantage of Remember This would require the CO 2
using semaphores over Test learner to recall the
And Set () and Swap () Functions.
functions. Describe the use
of wait () and signal ()
functions on semaphore and
how these can provide the
solution to the Critical
section problem.
5 Consider three Remember This would require the CO 3
CPU-intensive processes, learner to recall the process.
which require 10, 20 and 30
time units and arrive at
times 0, 2 and 6,
respectively. How many
context switches are needed
if the operating system
implements a shortest
remaining time first
scheduling algorithm. Do
not count the context
switches at time zero and at
the end
6 Construct Process Control Understand This would require the CO 2
Block for anyGiven learner to recall the PCB
example.

Page 7
7 Explain Four jobs to be Understand This would require the CO 3
executed on a single learner to recall the
processor system arrive at Processor.
time0intheorderA,B,C,D.their
burst CPU time
requirements are 4,1, 8, 1
time units respectively. The
completion time of A under
round robin scheduling with
a time slice of one time unit
is?
8 Explain the concept of Remember This would require the CO 3
multi-threading. Discuss the learner to recall the Multi
following multithreading threading.
models. a) Many-to-one b)
One-to-one c)
Many-to-many d) Two-level
9 Write about Peterson’s Understand This would require the CO 2
Solution. learner to recall Peterson’s
Solution.
10 Distinguish between Remember This would require the CO 1
monitor and semaphore. learner to recall the Monitor
Explain in detail a monitor and semaphore.
with notify and broadcast
functions using an example.
PART B-LONG ANSWER QUESTIONS
1 Describe process scheduling. Remember This would require the CO 2
Explain the various levels of learner to recall the process
scheduling. scheduling.
2 Explain the process state Understand This would require the CO2
transition diagram with learner to recall the state
examples. transition diagram.
3 Explain handle pruning in Understand This would require the CO 1
detail with example? learner to recall the handle
pruning.
4 What do you mean by Remember This would require the CO 2
PCB? Where is it used? learner to recall the PCB.
What are its contents?
Explain
5 Explain direct and indirect Remember This would require the CO 3
communications of message learner to recall the direct
passing systems. and indirect
communications.

Page 8
6 What is a process? Draw Understand This would require the CO 2
and explain process state learner to recall the Process.
diagram
7 Distinguish between Understand This would require the CO 3
monitor and semaphore learner to recall the monitor
and semaphore.
8 Discuss the attributes of the Remember This would require the CO 3
process. Describe the learner to recall the PCB
typical elements of process
control block
9 What is the purpose of the Understand This would require the CO 2
system calls & system learner to recall the System
programs? calls & System programs
10 List out the various process Remember This would require the CO 1
states and briefly explain learner to recall the PCB.
the same with a state
diagram.
11 What is the purpose of a Understand This would require the CO 3
command interpreter? Why learner to recall the
is it usually separate from command interpreter.
the kernel?
12 What are different Understand This would require the CO 2
differences between user learner to recall the threads.
level threads & Kernel
supported threads?
13 What is a Scheduler? What Understand This would require the CO 2
is a dispatcher? learner to recall the
Scheduler.
14 Discuss the following CPU Understand This would require the CO 3
scheduling algorithms a) learner to recall the CPU
Round robin b) Shortest scheduling.
Job
15 Discuss the following CPU Understand This would require the CO 3
scheduling algorithms a) learner to recall the CPU
first come first serve b) scheduling.
Priority
16 Discuss the following. a) Understand This would require the CO 1
CPU-I/O burst cycle b) learner to recall the CPU
CPU schedule c) scheduling.
Pre-emptive and
non-preemptive scheduling
d) Dispatcher

Page 9
17 Compare between Understand This would require the CO 3
Job-scheduling & learner to recall the CPU
CPU-scheduling. scheduling.
18 Discuss the attributes of the Understand This would require the CO 2
process. Describe the learner to recall the PCB.
typical elements of process
control block
19 Define semaphore. Explain Understand This would require the CO 2
the method of application of learner to recall the
semaphore for process semaphore.
synchronization.
20 Discuss about following? a) This would require the CO 2
Process b) Components of learner to recall the process.
process c) Program versus
process d) Process states
PART C-SHORT ANSWER QUESTIONS
1 Define process. Remember This would require the CO 2
learner to recall the process.
2 Define thread? Understand This would require the CO2
learner to recall the thread.
3 Describe context switching Understand This would require the CO 1
learner to recall the context
switching.
4 What is the information Remember This would require the CO 2
maintained in a PCB. learner to recall the PCB.
5 Define process state and Remember This would require the CO 3
mention the various states learner to recall the process.
of a process.
6 Define CPU scheduling. Understand This would require the CO 2
learner to recall the CPU
scheduling.
7 State critical section Understand This would require the CO 3
problem learner to recall the critical
Section problem.
8 Distinguish between thread Remember This would require the CO 3
with process. learner to recall the thread
9 Distinguish between user Understand This would require the CO 2
threads and kernel threads learner to recall the thread.
10 Define turnaround time. Remember This would require the CO 1
learner to recall the
turnaround time.

Page 10
11 List the various scheduling Understand This would require the CO 3
criteria for CPU scheduling. learner to recall the CPU
scheduling.
12 Describe entry and exit Understand This would require the CO 2
sections of a critical section learner to recall the entry
and exit sections.
13 Define semaphores. Understand This would require the CO 2
learner to recall the
semaphores.
14 Explain different ways in Understand This would require the CO 3
which a thread can be learner to recall the thread.
cancelled.
15 Write about Scheduling Understand This would require the CO 3
queues. learner to recall the
Scheduling.
16 Explain the use of job Understand This would require the CO 1
queues, ready queues and learner to recall the job
device queues queues, ready queues and
device queues.
17 Explain bounded waiting in Understand This would require the CO 3
critical region. learner to recall the critical
region.
18 State the factors on which Understand This would require the CO 2
the performance of the learner to recall the round
Round Robin CPU robin CPU scheduling.
scheduling algorithm
depends.
19 Distinguish between Understand This would require the CO 2
semaphore and binary learner to recall the
semaphore. semaphore and binary
semaphore.
20 Distinguish between This would require the CO 2
preemptive and learner to recall the
non-preemptive scheduling preemptive and
techniques non-preemptive scheduling
techniques

Page 11
MODULE III
MEMORY MANAGEMENT AND VIRTUAL MEMORY
PART A- PROBLEM SOLVING AND CRITICAL THINKING
Q.No QUESTION Taxonomy How does this subsume CO’s
the level
1 Memory partitions of Remember This would require the CO 7
100kb,500 kb,200 learner to recall the Best fit
kb,300kb,600 kb are algorithms.
available .How would 7 best
,worst, first fit algorithms
place processes
212,417,112,426 in order.
Which is the best
algorithm?
2 Describe the LRU page Understand This would require the CO 7
replacement algorithm, learner to recall the page
assuming there are 3 frames faults.
and the page reference
string is 7 0 1 2 0 3 0 4 2 3 0
3 2 1 2 0 1 7 0 1.Find the
number of page faults.
3 Consider the following page Understand This would require the CO 7
reference string learner to recall the
1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2,1,2,3,6 Algorithms
.Find out the number of
page faults a) LRU b) FIFO
4 The queue of requests in Remember This would require the CO 7
FIFO is learner to recall the
86,147,91,177,94,150,102,175,130 Scheduling Algorithms
What is the total head
movement needed to satisfy
the requests for the
following Scheduling
algorithms FCFS, SJF,
SCAN
5 Discuss the following page Remember This would require the CO 7
replacement algorithm with learner to recall the Page
an example i) Optimal ii) replacement Algorithms
LRU

Page 12
6 A virtual memory system Understand This would require the CO 8
has the following learner to recall the Virtual
specification: Size of the and physical addresses
virtual address space=64k
Size of the physical address
space=4k Page size=512
Virtual page# physical
frame# 0 0 3 1 7 2 4 3 10 4
12 5 30 6 31 7 i)find all the
virtual addresses that will
generate a page fault
compute the main memory
addresses for the following
virtual addresses.
24,3784,10250,30780
7 A process references 5 pages Understand This would require the CO 8
A,B, C, D, E in the learner to recall the
following order A, B, C, D, Replacement algorithm.
A, E, B, C, E, D Assuming
that the replacement
algorithm is LRU and FIFO,
find out the number of page
faults during the sequence
of references, starting with
an empty main memory
With 3 frames.
8 Consider the following page Remember This would require the CO 8
reference string 7,0, learner to recall the
1,2,0,3,0,4,2,3,0,3,2, 1,2,0, 1, Replacement algorithm.
7, 10 0, 1. How many page
faults would occur for FIFO
page replacement
algorithms, assuming three
frames?
9 Given memory partitions of Understand This would require the CO 8
100 K, 500 K, 200 K, 300 K learner to recall the efficient
and 600 K (in order) how use of memory.
Would each of the first fit,
best fit and worst fit
algorithms workplace
processes of 212 K, 417K,
112 K and 426 K (in order)?
Which algorithm makes the
most efficient use of
memory?

Page 13
10 Consider a logical address Remember This would require the CO 8
space of eight pages of 1024 learner to recall the physical
words each mapped onto a Address.
physical memory of 32
frames a) How many bits
are in the logical address.
b) How many bits are in the
physical address
PART B-LONG ANSWER QUESTIONS
1 Describe the following. a) Remember This would require the CO 2
Virtual Memory b) Cache learner to recall the Memory
Memory
2 What is paging and Understand This would require the CO2
swapping? learner to recall the Paging
and swapping
3 With a diagram discuss the Understand This would require the CO 1
steps involved in handling a learner to recall the page
page fault. fault
4 Describe a) Paging b) Page Remember This would require the CO 2
table structure learner to recall the paging
5 Explain in detail the Remember This would require the CO 3
requirements that memory learner to recall the memory
management technique management
needs to satisfy
6 Describe a) Translation Understand This would require the CO 2
look-aside buffer b) learner to recall the
Segmentation Segmentation
7 Describe contiguous Understand This would require the CO 3
memory allocation concept learner to recall the memory
with advantages and management.
disadvantages
8 Describe Hierarchical Remember This would require the CO 3
paging . learner to recall the paging
9 Describe Inverted page Understand This would require the CO 2
Table learner to recall the page
table
10 Explain briefly about Remember This would require the CO 1
paging with a neat diagram. learner to recall the Paging
11 Explain the uses of the Understand This would require the CO 3
following: a. Mutex object learner to recall the Mutex
b. Semaphore object and semaphore.
12 Define page fault. When Understand This would require the CO 2
does a page fault occur. learner to recall the page
fault.

Page 14
13 Describe the action taken by Understand This would require the CO 2
OS when page fault occurs. learner to recall the page
fault.
14 Write a note on file types Understand This would require the CO 3
and file structures . learner to recall the files
15 Explain with the help of Understand This would require the CO 3
supporting diagrams how learner to recall the demand
TLB improves the paging.
performance of a demand
paging system.
16 Differentiate between global Understand This would require the CO 1
and local replacement learner to recall the page
algorithms replacement algorithms.
17 What is virtual memory? Understand This would require the CO 3
Explain Suppose we have a learner to recall the Virtual
demand paged memory. Machine
The page table is held in
registers. It takes 8ms to
service a page fault if an
empty page is available or
the replaced page is not
modified, and 20ms if the
replaced page is modified.
memory access time is
100ns. Assume that the
page to be replaced is
modified 70% of the time.
What is the maximum
acceptable page fault rate
for an effective access time
of no more than 200ns?
18 Explain the basic concepts Understand This would require the CO 2
of segmentation with neat learner to recall the
diagrams Segmentation.
19 Explain the uses of the Understand This would require the CO 2
following: a) Mutex object learner to recall the Mutex
b) Semaphore object c) and semaphore.
Waitable timer object.
20 Explain briefly the This would require the CO 2
performance of demand learner to recall about the
paging with necessary demand paging.
examples

Page 15
PART C - SHORT ANSWER QUESTIONS
1 Define compaction. Remember This would require the CO 2
learner to recall the
compaction
2 Define swapping. Understand This would require the CO2
learner to recall the
swapping.
3 Explain the main function Understand This would require the CO 1
of the memory-management learner to recall the memory
unit management.
4 Distinguish between logical Remember This would require the CO 2
address and physical learner to recall the logical
address. address and physical
address.
5 Compare synthesized and Remember This would require the CO 3
inherited attributes? learner to recall the
inherited attributes
6 Describe dynamic loading Understand This would require the CO 2
and dynamic linking. learner to recall the
Memory management.
7 Distinguish between compile Understand This would require the CO 3
time, load time and learner to recall the memory
execution time address management.
binding.
8 Distinguish between internal Remember This would require the CO 3
and external fragmentation. learner to recall the
fragmentation.
9 List dynamic storage Understand This would require the CO 2
allocation strategies in learner to recall the memory
contiguous memory management.
allocation schemes.
10 List and define Remember This would require the CO 1
non-contiguous memory learner to recall the memory
allocation schemes. management .
11 What is virtual memory? Understand This would require the CO 3
learner to recall the Virtual
machine.
12 Differentiate between Understand This would require the CO 2
demand paging and pure learner to recall the Paging.
demand paging.
13 Differentiate between local Understand This would require the CO 2
and global page replacement learner to recall the Paging
strategies.

Page 16
14 Explain the need for Understand This would require the CO 3
page-replacement learner to recall the Page
replacement
15 Distinguish between paging Understand This would require the CO 3
and segmentation learner to recall the Paging
16 Explain any two page Understand This would require the CO 1
replacement algorithms learner to recall the Page
replacement algorithms.
17 List various page Understand This would require the CO 3
replacement algorithms. learner to recall the page
replacement
18 Explain the concept of Understand This would require the CO 2
thrashing and why learner to recall the
thrashing should be avoided Thrashing.
in a system.
19 What is virtual memory and Understand
This would require the CO 2
give its advantages learner to recall the Virtual
memory
20 What is demand paging? This would require the CO 2
Explain learner to recall the paging
MODULE IV
FILE SYSTEM INTERFACE, MASS-STORAGE STRUCTURE
PART A-PROBLEM SOLVING AND CRITICAL THINKING
1 A hard disk has 63 sectors Remember This would require the CO 9
per tracks, 10 platters each learner to recall the physical
with 2 recording surfaces and logical addresses
and 1000 cylinders. The
address of a sector is given
as a triple ¡ C, h, and s¿
where c is the cylinder
number, h is the surface
number and s is the sector
number. Thus 0th sector is
addressed as ¡0, 0, and 0¿,
the 1st sector is Addressed
as ¡0, 0, and 1¿ and so on.
Calculate the address of
1050thsector

Page 17
2 Explain the maximum file Understand This would require the CO 9
size supported by a file learner to recall the files
system with 16 direct
blocks, single, double, and
triple indirection. The block
size is 512 bytes. Disk block
numbers can be stored in 4
bytes.
3 Discuss the reasons why the Understand This would require the CO 10
operating system might learner to recall the disk
require accurate information storage and file system
on how blocks are stored on performance
disk. how could operating
system improves file system
performance with this
knowledge
4 Discuss how OS could Remember This would require the CO 10
maintain a free-space list for learner to recall the file
a tape-resident file system. systems
Assume that the tape
technology is append-only
and that it uses EOT marks
and locate, space and read
position command
5 Compare the performance of Remember This would require the CO 10
write operations achieved by learner to recall the
a RAID level 5 organization organization of files
with that achieved by a
RAID level 1 organization.
6 Is there any way to Understand This would require the CO 9
implement truly stable learner to recall the table
storage. Explain your storage
answer
7 What are file protection Understand This would require the CO 10
methods? learner to recall the file
production
8 Explain different types of Remember This would require the CO 10
files learner to recall the files

Page 18
9 Suppose we have files F1 to Understand This would require the CO 9
F4 in sizes of 7178, 572, 499 learner to recall the
and 1195 bytes. Our disks fragmentation
have fixed physical block
size of 512 bytes for
allocation. Explain how
many physical blocks would
be needed to store these
four files if we were to use a
chained allocation strategy
assuming that we need 5
bytes of information to
determine the next block in
the link. Which file results
in the maximum internal
fragmentation (measured as
a percentage of the file size
itself).
10 Consider that a disk drive Remember This would require the CO 10
has 5,000 cylinders, learner to recall the
numbered 0 to 4,999. The scheduling algorithms .
drive is currently serving
request at cylinder 143, and
the previous request was at
cylinder 125. The queue of
pending requests, in FIFO
order, is: 86, 1470, 913,
1774, 948, 1509, 1022, 1750,
130 Starting from the
current head position, what
is the total distance (in
cylinders) that the disk arm
moves to satisfy all pending
requests for each of the
following disk scheduling
algorithms. A. FCFS B.
SSTF C. SCAN D. C-SCAN
E. LOOK F. C-LOOK
PART B- LONG ANSWER QUESTIONS
1 Explain in detail the Remember This would require the CO 9
interrupts and interrupt learner to recall the
handling features. interrupts and handling
features.

Page 19
2 Discuss about Disk space Understand This would require the CO 9
management learner to recall the disk
space management .
3 Discuss about Swap –space Understand This would require the CO 10
management learner to recall the
Swap-space management.
4 Describe the following Remember This would require the CO 10
Directory Implementation learner to recall the
methods. a)Linear List b) Implementation Methods .
Hash Table
5 Explain the concept of file Remember This would require the CO 10
sharing. What are the learner to recall the File
criteria to be followed in Sharing.
systems which implement
file sharing
6 Explain the following file Understand This would require the CO 9
concepts: a) File attributes learner to recall the file
b) File operations concepts.
7 Explain the following file Understand This would require the CO 10
concepts: a) File types b) learner to recall the file
Internal file structure concepts.
8 Discuss the following a) File Remember This would require the CO 10
system mounting learner to recall the file
b)Thrashing concepts.
9 Explain caching . Understand This would require the CO 9
learner to recall the
memory.
10 Define buffering. Remember This would require the CO 10
learner to recall the files.
11 Write about spooling. Understand This would require the CO 10
learner to recall the spooling
12 Explain the techniques used Understand This would require the CO 9
for performing I/O learner to recall the
Techniques used for
performing I/O
13 Give an example of an Understand This would require the CO 9
application in which data in learner to recall the File
a file should be accessed in orders
the following order: i.
sequential ii. Random
14 Explain the following in Understand This would require the CO 10
detail with respect to disk. learner to recall the seek
a) Seek time b) Latency time and latency with
respect to disk

Page 20
15 Explain the following in Understand This would require the CO 10
detail with respect to disk. learner to recall the access
a)Access time b) Transfer time and transfer time with
time respect to disk
16 Define magnetic disk Understand This would require the CO 10
structure and its learner to recall the
management. magnetic disk structure and
its management
17 Explain swap space Understand This would require the CO 10
management. learner to recall the swap
space management
18 Differentiate among the Understand This would require the CO 10
following disk scheduling learner to recall the
algorithms. a) FCFS b) scheduling algorithms
SSTF
19 Differentiate among the Understand This would require the CO 10
following disk scheduling learner to recall the
algorithms. a) SCAN b) scheduling algorithms
C-SCAN
20 Differentiate among the This would require the CO 10
following disk scheduling learner to recall the
algorithms. a)LOOK b) scheduling algorithms
C-LOOK
PART C- SHORT ANSWER QUESTIONS
1 Describe various file access Remember This would require the CO 10
method learner to recall the files.
2 Explain the following i)file Understand This would require the CO 9
types ii) file operation iii) learner to recall the files
file attributes.
3 Define the terms – file, file Understand This would require the CO 9
path, directory. learner to recall the files.
4 Describe UFD and MFD. Remember This would require the CO 9
learner to recall the UFD
and MFD
5 Describe file system Remember This would require the CO 9
mounting learner to recall the files
6 List the various layers of a Understand This would require the CO 9
file system. learner to recall the file
system,
7 Explain the functions of the Understand This would require the CO 9
virtual file system (VFS). learner to recall the virtual
file system.

Page 21
8 Explain the allocation Remember This would require the CO 9
methods of a disk space. learner to recall the disk
space
9 List the various layers of a Understand This would require the CO 9
file system. learner to recall the layers
of file system
10 Describe about logical Remember This would require the CO 9
formatting of the disk. learner to recall the
formatting of the disk.
11 List any four common file Understand This would require the
types and their extensions. learner to recall the file
types and extensions
12 Explain any four common Understand This would require the CO 9
file attributes learner to recall the file
attributes.
13 Explain any four file Understand This would require the CO 9
operations. learner to recall the file
operations.
14 Distinguish between shared Understand This would require the CO 9
and exclusive locks. learner to recall the locks.
15 List any four secondary Understand This would require the CO 9
storage memory devices. learner to recall the Storage
memory devices.
16 Define the terms with Understand This would require the CO 10
respect to disk I/O - seek learner to recall the disk
time, latency time. and its respective times
17 Explain the information Understand This would require the CO 10
associated with an open file. learner to recall the files.
18 Discuss the advantages of Understand This would require the CO 10
contiguous memory learner to recall the disk
allocation of disk space space.
19 Write a short note on Understand This would require the CO 10
procedures? learner to recall the
procedures.
20 Discuss the drawbacks of This would require the CO 10
contiguous allocation of disk learner to recall the disk
space. space.

Page 22
MODULE V
DEADLOCKS, PROTECTION
PART A-PROBLEM SOLVING AND CRITICAL THINKING
Q.No QUESTION Taxonomy How does this subsume CO’s
the level
1 Consider the version of the Remember This would require the CO 12
dining-philosophers problem learner to recall the
in which the chopsticks are deadlock
placed at the center of the
table and any two of them
can be used by a
philosopher. Assume that
requests for chopsticks are
made one at a time.
Describe a simple rule for
determining whether a
particular request can be
satisfied without causing
deadlock given the current
allocation of chopsticks to
philosophers
2 Consider a system Understand This would require the CO 12
consisting of m resources of learner to recall the
the same type being shared resources
by n processes. A process
can request or release only
one resource at a time.
Show that the system is
deadlock free if the following
two conditions hold: a) The
maximum need of each
process is between one
resource and m resources.
b) The sum of all maximum
needs is less than m +n.

Page 23
3 Given 3 processes A,B and Understand This would require the CO 12
C, three resources x,y and z learner to recall the
and following events, a. A recovery from deadlock
requests x ii) A requests y
iii) B requests y iv) B
requests z v) C requests z
vi) C requests x vii) C
requests y Assume that
requested resources should
always be allocated to the
request process if it is
available. Draw the resource
allocation graph for the
sequences. And also
mention whether it is a
deadlock? If it is, how to
recover the deadlock
4 Explain How does the Remember This would require the CO 12
principle of least privilege learner to recall the
aid in the creation of protection of system
protection systems
5 Describe how the Java Remember This would require the CO 12
protection model would be learner to recall the
compromised if a Java annotations
program were allowed to
directly alter the
annotations of its stack
frame
6 Describe the Coffman’s Understand This would require the CO 12
conditions that lead to a learner to recall the
deadlock. Coffman’s conditions
7 A system contains three Understand This would require the CO 12
programs and each requires learner to recall the
three tape units for its
operation. Explain the
minimum number of tape
units which the system
must have such that
deadlocks never arise is

Page 24
8 A system has 6 identical Remember This would require the CO 12
resources and N processes learner to recall the
competing for them. Each deadlocks
process can request at most
2 resources. Explain which
one of the following values
of N could lead to a
deadlock.
9 Define in detail the Understand This would require the CO 12
technique of deadlock learner to recall the
avoidance deadlock
10 Explain briefly about Remember This would require the CO 12
purpose of the banker’s learner to recall the
algorithm. Banker’s algorithm
PART B- LONG ANSWER QUESTIONS
1 What is the deadlock? Remember This would require the CO 12
Explain the necessary learner to recall the
conditions for its occurrence Deadlock
2 Explain briefly resource Understand This would require the CO 12
allocation graph with learner to recall the research
examples algorithm graph
3 Explain the methods for Understand This would require the CO 12
deadlock prevention learner to recall the
prevention of deadlock
4 Explain the resource Remember This would require the CO 12
allocation graph learner to recall the research
algorithm
5 Differentiate the deadlock Remember This would require the CO 12
handling methods learner to recall the
Deadlock handling methods
6 Explain Banker’s algorithm Understand This would require the CO 12
for deadlock avoidance with learner to recall the
an example banker’s algorithm
7 Discuss the various issues Understand This would require the CO 12
that need to be considered learner to recall the process
through the process of of revocation and access
revocation of access rights rights
8 State and explain the Remember This would require the CO 12
methods involved in learner to recall the
recovery from deadlocks. recovery from deadlock
9 Describe resource-allocation Understand This would require the CO 12
graph. Explain how learner to recall the resource
resource graph can be used allocation graph
for detecting deadlocks

Page 25
10 Describe the terms. a) Race Remember This would require the CO 12
condition b) Atomic learner to recall the race
transaction c) Critical condition and atomic
section d) Mutual exclusion transaction and Critical
section and mutual
exclusion
11 Describe how the access Understand This would require the CO 10
matrix facility and learner to recall the role
role-based access control based access control
facility are similar. How do
they differ?
12 Explain why a capability Understand This would require the CO 9
based system such as Hydra learner to recall the
provides greater flexibility protections
than the ring- protection
scheme in enforcing
protection policies.
13 Define Goals of protection Understand This would require the CO 9
learner to recall the goals of
protection
14 Define Principles of Understand This would require the CO 10
protection. learner to recall the
principles of protection
15 Discuss about domain of Understand This would require the CO 10
protection learner to recall the domain
of protection
16 Why do you need to provide Understand This would require the CO 10
protection to the system? learner to recall the Provide
protection to the system
17 Discuss the access matrix Understand This would require the CO 10
implementation techniques. learner to recall the access
matrix implementation
techniques
18 Compare the various access Understand This would require the CO 10
matrix implementation learner to recall the axis
techniques Matrix implementation
techniques
19 Discuss deadlock detection Understand This would require the CO 10
method in detail. learner to recall the
deadlock detection
20 Explain various schemes to This would require the CO 10
implement revocation for learner to recall the
capabilities implement revocation per
capability

Page 26
PART C- SHORT ANSWER QUESTIONS
1 Define Deadlock Remember This would require the CO 12
learner to recalltheDeadlock
2 Define resource. Understand This would require the CO 12
learner to recall the
resources
3 List some resources that a Understand This would require the CO 12
process might need for its learner to recall the
execution Research and its execution
4 Explain safe state Remember This would require the CO 12
learner to recall the safe ve
state
5 Explain unsafe state Remember This would require the CO 12
learner to recall the unsafe
state
6 Define the purpose of Understand This would require the CO 12
banker’s algorithm learner to recall the
banker’s algorithm
7 Describe the techniques for Understand This would require the CO 12
recovery from deadlock learner to recall the
recovery of deadlock
8 List the goals of protection Remember This would require the CO 12
learner to recall the goals
for protection
9 Describe any one Understand This would require the CO 12
language-based protection learner to recall the
schemes language basic protection
10 State principle of least Remember This would require the CO 12
privilege. learner to recall the least
privilege
11 Describe role-based access Understand This would require the CO 10
control. learner to recall the Role
based access control
12 List the schemes that Understand This would require the CO 9
implement revocation of learner to recall the
capabilities implement revocation of
capability
13 Explain the sequence in Understand This would require the CO 9
which a process may utilize learner to recall the
the resources in normal Resources
mode of operation
14 Define the terms : a)object Understand This would require the CO 10
b)domain c) access right. learner to recall the terms
in deadlock

Page 27
15 Write the main differences Understand This would require the CO 10
between capability lists and learner to recall the
access lists differences between
captopril ATI list and access
list
16 Distinguish between Understand This would require the CO 10
deadlock avoidance and learner to recall the
prevention strategies. Prevention state strategies
of deadlock
17 Why is deadlock state more Understand This would require the CO 10
critical than starvation? learner to recall the
Starvation and deadlock
18 What are two options for Understand This would require the CO 10
breaking deadlock? learner to recall the
Breaking deadlock
19 What is meant by Understand This would require the CO 10
Starvation learner to recall the
starvation
20 Write the format of an This would require the CO 10
access matrix learner to recall the format
of an access matrix

Course Coordinator: HOD CSE


Ms. A. Harika, Assistant professor

Page 28

You might also like