Operating Systems
Operating Systems
4 Consider the following set of processes, with the length of the CPU burst given in [14M]
milliseconds:
Process Burst Time Priority
P1 10 3
P2 1 1
P3 2 4
P4 1 5
P5 5 2
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at
time 0. Draw Gantt chart that illustrate the execution of these processes using the
non preemptive priority (a smaller priority number implies a higher priority)
scheduling algorithm. What is the turnaround time and waiting time of each
process?
SECTION-III
5 How Semaphores and Monitors Solve the Synchronization problem. Illustrate [14M]
them with clear examples.
OR
6 Consider the following snapshot of a system: [14M]
Allocation Max Available
--------------- ------------ -----------
ABC D ABCD ABCD
Po 0012 0 012 1520
P1 1000 1 750
p2 1354 2 356
p3 0632 0 652
p4 0014 0 656
Apply Banker’s Algorithm and determine whether the system is in safe state or
not?
Page 1 of 2
SECTION-IV
7 Define Message Queues? Write the syntax for Creation, Sending and Receiving [14M]
information by using Message Queues? Discuss with clear examples?
OR
8 Illustrate any three Page Replacement Algorithms with clear examples. [14M]
SECTION-V
9 Discuss any five system calls for file I/O operations with programming examples [14M]
OR
10 What is disk Management? Discuss the Following Disk scheduling Algorithms [5M]
with suitable examples: [5M]
a)FCFS [4M]
b)SSTF
c)SCAN
**********
Page 2 of 2
R18
Code No: R18A0504
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
II B.Tech I Semester Supplementary Examinations, July/August 2021
Operating Systems
(CSE & IT)
Roll No
4 Five batch jobs A, B, C, D and E arrive at a computer center at almost at the [14M]
same time. They have estimated running times of 10,6,2,4 and 8 minutes. Their
priorities are 3,5,2,1 and 4 respectively, with 5 being the highest priority. For
each of the following scheduling algorithm determine the turnaround time of
each process and waiting time of each process. Ignore process switching
overhead. Mention which algorithm results in minimal average waiting time.
i) Round Robin
ii) Priority scheduling
iii) First come first served
iv) Shortest job first.
For case i) Assume that system is multiprocessing, and each job gets its
fair share of the CPU. (time quantum 2 minutes0. For cases (ii), (iii) and
(iv) assume that only one job runs at a time, until it finishes. All jobs are
completely CPU bound.
5 Consider a swapping system in which memory consists of the following hole [14M]
sizes in memory order: 12 KB, 4 KB, 24 KB, 15 KB, 9 KB, 7 KB, 10 KB, and 11
KB. Which hole is taken for successive segment requests of: (i) 14 KB (ii) 8 KB
(iii) 5 KB for first fit, best fit, worst fit, and next fit approaches?
Page 1 of 2
6 a. Describe the hardware implementation of a page table with translation [7M]
Look-aside Buffer.
b. What is virtual memory? Explain Suppose we have a demand paged
memory. The page table is held in registers. it takes 8ms to service a page [7M]
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?
7 Explain about the linear list and hash table data structures to implement a [14M]
directory.
8 a. A system has 3 devices D1, D2 and D3 and 3 processes P1, P2, and P3. [7M]
P1 is holding D1 and waiting for D3. P2 is holding D2 and waiting for
D1. P3 is holding D3 and waiting for D2. Draw resource allocation graph
and wait-for graph. Is the system in deadlock state or not? Explain.
b. Is disk scheduling, other than FCFS scheduling, useful in a single-user [7M]
environment? Justify your answer.
***
Page 2 of 2
R18
Code No: R18A0504
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
II B.Tech I Semester Supplementary Examinations, Dec-21/Jan-22
Operating Systems
(CSE & IT)
Roll No
Page 1 of 1
R18
Code No: R18A0504
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
II B.Tech I Semester Supplementary Examinations, June 2022
Operating Systems
(CSE & IT)
Roll No
2 What do you mean by a Thread? Explain the various types of threads. Also, [14M]
explain the concept of Multi-threading with its benefits in detail.
3 What are the main objectives of Process Scheduling? Write about different types of [14M]
Schedulers and Scheduling Criteria. Give an example of Round Robin Scheduling
Algorithm.
4 Differentiate how Inter process Communication happens through Semaphores and [14M]
Message Passing.
5 What is meant by Paging? What are the principles for Page allocation? Explain the [14M]
details of hardware support for paging? What are the advantages and
disadvantages of paging?
6 Compare the performance of Page replacement algorithms: Not Recently Used [14M]
(NRU) and Least Recently Used (LRU).
7 Explain the use of directory organization of files. Explain in detail the [14M]
implementation of Tree structured directory.
8 What is a Deadlock? Explain the optimal techniques for Deadlock prevention and [14M]
avoidance.
**********
Page 1 of 1
R18
Code No: R18A0504
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
II B.Tech I Semester Supplementary Examinations, November 2022
Operating Systems
(CSE & IT)
Roll No
OR
2 A State and explain operating system services that provide functions which are [7M]
helpful to the user.
B Explain with a neat example how system calls used. [7M]
SECTION-II
3 A Explain Peterson’s solution for critical section problem. [7M]
B Explain the solution for the Dining Philosophers problem using semaphore. [7M]
OR
4 A Explain Scheduling algorithms in operating system. [7M]
B Explain how you can implement a monitor using semaphores. [7M]
SECTION-III
5 A Briefly discuss about Optimal, First in First Out (FIFO), Second Chance [7M]
(SC) and Not recently used (NRU).
B What is demand paging. [7M]
OR
6 A Write in brief on the Fixed partitioning and dynamic partitioning memory [8M]
management techniques
B Write short note on paging. [6M]
SECTION-IV
7 A Explain the three allocation methods in file system implementation. [7M]
B State and explain four approaches to free space management. [7M]
OR
8 A Write a short note on Goals of Interrupt handlers, Device drivers and Device [7M]
independent I/O software.
B Explain about I/O devices, Device controllers and Direct memory access [7M]
Principles of I/O
1
SECTION-V
9 A Briefly explain about deadlock prevention methods with examples of each. [7M]
B Explain FCFS and SSTF disk scheduling algorithm. [7M]
OR
10 A Explain about deadlock avoidance. [7M]
B Explain SCAN and C-SCAN disk scheduling algorithm. [7M]
****
2
R17
Code No: R17A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Supplementary Examinations, July/August 2021
Operating Systems
(CSE & IT)
Roll No
2 What is OS? Describe the different types of Operating Systems with the examples. [14M]
3 Define Scheduling? Explain any Two CPU Scheduling Algorithms with Examples. [14M]
7 Explain any four File access methods for information in a file with neat diagrams. [14M]
8 Define Deadlock? State and explain four conditions that are necessary for deadlocks [14M]
to occur with neat example.
**********
Page 1 of 1
R17
Code No: R17A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Supplementary Examinations, Dec-21/Jan-22
Operating Systems
(CSE & IT)
Roll No
Page 1 of 1
R17
Code No: R17A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Supplementary Examinations, June 2022
Operating Systems
(CSE & IT)
Roll No
2 Explain the actions taken by a thread library to context-switch between user level [14M]
threads. Also, Briefly explain the inter-process communications.
5 Demonstrate about Dining Philosophers problem? Discuss the solution to Dining [14M]
philosopher’s problem using monitors.
Page 1 of 1
R15
Code No: R15A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Regular Examinations, November 2017
Operating Systems
(CSE)
Roll No
SECTION – III
6. Explain various Page Replacement Algorithms with examples.[10]
(OR)
7. Explain the structure and implementation of Page Table.[10]
SECTION – IV
SECTION – V
10. How the deadlocks can be avoided? Explain with the help of bankers algorithm.[10]
(OR)
11. How the access matrix helps in protection of a system? Explain with examples.[10]
****
Code No: R15A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY R15
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester supplementary Examinations, May 2018
Operating Systems
(CSE)
Roll No
.SECTION – IV
8. Explain the implementation of local file systems and directory structures. [ 10M]
(OR)
9. (a) Explain the structure of disk, with a neat Diagram. [5M]
(b)Explain any three disk scheduling algorithms. [5M]
SECTION – V
10. Define dead lock. Explain the methods to recover from a dead lock. [10M]
(OR)
11. (a) Explain about Cambridge CAP system.[5M]
(b)How does the programming language Java support protection? Explain [5M]
********
R15
Code No: R15A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Regular/supplementary Examinations, November 2018
Operating Systems
(CSE&IT)
Roll No
1). a Define Operating System. List out the objectives of an operating system. [2M]
b Define system calls. Explain the main purpose of an operating system [3M]
c What is semaphore? [2M]
d Describe different process states. [3M]
e Write the difference between internal and external fragmentation [2M]
f Write the first ,best fit memory allocation techniques [3M]
g Define boot block. How it initiated from disk [2M]
h What are the various attributes that are associated with an opened file [3M]
i Describe the Safe, unsafe, and deadlock state spaces [2M]
j List the goals and principles of protection [3M]
PART-B (50 MARKS)
SECTION-I
2 Discuss about the evolution of operating system [10M]
OR
3 Explain the purpose of system calls and discuss the system calls related to process [10M]
control and communication in brief
SECTION-II
4 Discuss any five process scheduling algorithms with examples [10M]
OR
5 a) Write the solution to Dining Philosophers problem using Monitors [5M]
b) Explain the Round Robin scheduling algorithm with a suitable example [5M]
SECTION-III
6 Given page reference string: 1,2,3,2,1,5,2,1,6,2,5,6,3,1,3,6,1,2,4,3. Compare the number [10M]
of page faults for LRU, FIFO and Optimal page replacement algorithm
OR
7(a) Discuss about paging with neat diagram [5M]
Page 1 of 2
(b) Explain the various structure of page table [5M]
SECTION-IV
8 a)Explain the three allocation methods in file system implementation. Illustrate [5M]
with proper diagram
b)How to organize the mass storage? Explain [5M]
OR
9 Discuss various disk scheduling algorithm with examples. [10M]
SECTION-V
10 Consider the table given below for a system, find the need matrix and the safety sequence, [10M]
using Banker’s algorithm.
Resource – 3 types
A – (10 instances)
B – (5 instances)
C – (7 instances)
Process Allocation Maximum Available
A B C A B C A B C
p0 0 1 0 7 5 3 3 3 2
p1 2 0 0 3 2 2
p2 3 0 2 9 0 2
p3 2 1 1 2 2 2
p4 0 0 2 4 3 3
OR
11 a)Discuss about Access Matrix [5M]
b)Write a note on domain of protection [5M]
******
Page 2 of 2
R15
Code No: R15A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Supplementary Examinations, July/August 2021
Operating Systems
(CSE&IT)
Roll No
4 What are various operations performed on a process? Explain each one in detail [15M]
considering operating systems examples?
5 Illustrate the following Page Replacement algorithms with clear examples. [15M]
FIFO (b)Optimal
6 Analyze the concept of Segmentation with paging and its use in OS Memory [15M]
Management
Page 1 of 1
R15
Code No: R15A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Supplementary Examinations, Dec-21/Jan-22
Operating Systems
(CSE&IT)
Roll No
SECTION-II
4 Consider the following set of processes, with the length of the CPU burst given in [10M]
milliseconds:
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at
time 0. Draw Gantt chart that illustrate the execution of these processes using the
Page 1 of 2
non preemptive priority (a smaller priority number implies a higher priority)
scheduling algorithm. What is the turnaround time and waiting time of each
process?
OR
5 Write and explain Producer-Consumer classical synchronization problem. [10M]
SECTION-III
6 Illustrate the following Page Replacement algorithms with clear examples. [10M]
(a) FIFO (b) Optimal
OR
7 Sketch the structure of page table. What is the purpose of paging the page tables [10M]
SECTION-IV
8 What is a file? What are the different operations that can be performed on [10M]
a file?
OR
9 Discuss the Following Disk scheduling Algorithms with suitable examples: [10M]
a)FCFS b)SSTF
SECTION-V
10 Illustrate the Principles of Protection. [10M]
OR
11 How resource allocation graph is useful in Deadlock detection? Explain? [10M]
******
Page 2 of 2
R15
Code No: R15A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Supplementary Examinations, June 2022
Operating Systems
(CSE)
Roll No
2 Define a Process. Describe Process State transition diagram with a neat [15M]
sketch.
4 What are various operations performed on a process? Explain each one in detail [15M]
considering operating systems examples?
Page 1 of 1
R15
Code No: R15A0513
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Supplementary Examinations, November 2022
Operating Systems
(CSE)
Roll No
1
SECTION-IV
8 Elaborate the overview of mass-storage structure. [10M]
OR
9 Elaborate in detail about various file allocation methods with their merits
and demerits.
(i) Contiguous allocation [4M]
(ii) Linked allocation [3M]
(iii) Index allocation [3M]
SECTION-V
10 State banker’s algorithm for deadlock avoidance. [10M]
OR
11 Explain the following concepts in terms of OS
i) Protection [4M]
ii) Goals of protection [3M]
iii) Principles of protection [3M]
******