Code No: 862AB
R19
--- Content provided by FirstRanker.com ---
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
MCA 1I Semester Examinations, July/August - 2021
OPERATING SYSTEMS
Time: 3 Hours
Max.Marks:75
--- Content provided by FirstRanker.com ---
Answer any five questions
All questions carry equal marks
- a) Describe how operating systems evolved from simple batch to multi-programmed and time sharing systems.
b) State and explain the various types of system calls in detail. [9+6] - a) Explain the differences among short-term, medium-term, and long term scheduling.
--- Content provided by FirstRanker.com ---
b) Consider the following set of processes, with the length of the CPU burst given in milliseconds: [5+10]
Process Burst Time Priority P1 10 3 P2 1 1 P3 2 3 P4 1 4 P5 5 2 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5 all at time 0.
- Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, non-preemptive priority (a smaller priority number implies a higher priority), and RR (quantum= 1).
- What is the turnaround time of each process for each of the scheduling algorithms?
- What is the waiting time of each process for each of these scheduling algorithms?
- Which of the algorithms results in the minimum average waiting time (over all processes)?
--- Content provided by FirstRanker.com ---
- a) Describe how the Swap() instruction can be used to provide mutual exclusion that satisfies the bounded-waiting requirement.
b) Consider the following snapshot of a system: [5+10]
Allocation Max Available A B C D A B C D A B C D P0 0 0 1 2 0 0 1 2 1 5 2 0 P1 1 0 0 0 1 7 5 0 P2 1 3 5 4 2 3 5 6 P3 0 6 3 2 0 6 5 2 P4 0 0 1 4 0 6 5 6 Answer the following questions using the banker’s algorithm:
--- Content provided by FirstRanker.com ---
- What is the content of the matrix Need?
- Is the system in a safe state?
- If a request from process P1 arrives for (0,4,2,0), can the request be granted immediately?
- a) Explain the following allocation algorithms:
- First fit
- Best fit
- Worst fit
--- Content provided by FirstRanker.com ---
- Explain the following two directory structures with diagrams:
- Tree structured
- Acyclic graph
--- Content provided by FirstRanker.com ---
- State and explain four approaches to free space management. [8+7]
- What is distributed system? List out the differences between distributed systems and conventional operating system.
- Write short notes on operating system structure. [7+8]
- What are two differences between user-level threads and kernel-level threads? Under what circumstances is one type better than the other?
- Describe the attributes of the process. Describe the typical elements of process control block. [7+8]
- Explain how semaphores can be used to control access to a given resource consisting of finite number of instances.
- Explain page replacement algorithms with example. [7+8]
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: JNTUH MCA 2nd Sem Last 10 Years 2023-2013 Question Papers R20-R09 || Jawaharlal nehru technological university