JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III OPERATING SYSTEMS Previous Question Paper (July/August - 2023 - R16)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
What are operating system services?
Answer
Operating system services are the set of functions provided by the OS to create an environment for the execution of programs. Key services include program execution, I/O operations, file-system manipulation, communications, error detection, resource allocation, accounting, and protection/security.
Write about user and OS interface.
Answer
The user and OS interface acts as the bridge between the user and the hardware. It primarily exists in two forms: the Command-Line Interface (CLI), which allows users to type commands directly to be executed, and the Graphical User Interface (GUI), which uses windows, icons, menus, and pointers to interact with the system. Some systems also provide batch interfaces where commands are entered into files for later execution.
What is ready queue?
Answer
Sign in to view the complete answer paper.
What is the purpose of exec() system call?
Answer
Sign in to view the complete answer paper.
What is external fragmentation?
Answer
Sign in to view the complete answer paper.
If the main memory is 64KB and secondary memory is 128KB, how many pages and frames are there if page size is 2KB? How many entries are there in page table?
Answer
Sign in to view the complete answer paper.
What are various file access methods?
Answer
Sign in to view the complete answer paper.
What is the purpose of seek() function?
Answer
Sign in to view the complete answer paper.
What is hold-and-wait condition?
Answer
Sign in to view the complete answer paper.
What is resource allocation graph?
Answer
Sign in to view the complete answer paper.
Part B
What is a system call? Explain different types of system calls.
Answer
Sign in to view the complete answer paper.
Explain operating system role in process management and memory management.
Answer
Sign in to view the complete answer paper.
How can we use semaphores in process synchronization? Explain.
Answer
Sign in to view the complete answer paper.
Perform preemptive and non-preemptive priority scheduling on following data (5 – highest priority, 1 – lowest priority) and compute average waiting time:
| Process ID | Arrival time | Burst time | priority |
|---|---|---|---|
| P01 | 0 | 4 | 4 |
| P02 | 1 | 5 | 1 |
| P03 | 3 | 7 | 2 |
| P04 | 5 | 1 | 5 |
| P05 | 6 | 9 | 3 |
Answer
Sign in to view the complete answer paper.
What is demand paging? What are the various steps involved when a page fault occurs? Explain.
Answer
Sign in to view the complete answer paper.
What are the various methods to avoid thrashing? Explain them.
Answer
Sign in to view the complete answer paper.
Explain how memory management is done through segmentation?
Answer
Sign in to view the complete answer paper.
Explain various disk scheduling algorithms with example.
Answer
Sign in to view the complete answer paper.
What is a file? Explain various file allocation methods.
Answer
Sign in to view the complete answer paper.
Explain banker’s algorithm for deadlock avoidance with an example.
Answer
Sign in to view the complete answer paper.
What is access matrix? How is it implemented? Explain.
Answer
Sign in to view the complete answer paper.
Explain how resource allocation graph can be used to deadlock avoidance.
Answer
Sign in to view the complete answer paper.