Operating System Q&A

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

EXCEL ENGINEERING COLLEGE

(Autonomous)
Approved by AICTE, New Delhi & Affiliated to Anna University,
Chennai Accredited by NBA, NAAC with “A+” and Recognized
by UGC (2f &12B)
KOMARAPALAYAM – 637303

B.TECH - ARTIFICIAL INTELLIGENCE AND DATA


SCIENCE

PART – A

1. What are the objectives of operating system?


2. What are privileged instructions?
3. Differentiate process and threads.
4. List the criteria for scheduling a process.
5. What do you mean by critical section problem?
6. What are the conditions for a deadlock?
7. What is belady’s anomaly?
8. Define page fault.
9. What is the responsibility of kernel in Linux operating system?
10. List the functionality of a hypervisor.
PART – B

11 (a) In the realm of operating systems, elaborate system calls and system programs.
(Or)
11 (b) Enumerate the various operating systems structures and provide a detailed explanation
of each, accompanying an illustrative diagram.

12 (a) In the context of operating systems, explain the significance of Process Control Block
(PCB) and provide a detailed list of the data fields commonly found within a PCB.
(Or)
12 (b) Consider the following set of processes, with the length of the CPU – burst time in
given ms:

Process BrustTime ArrivalTime


P1 8 0.00
P2 4 1.001
P3 9 2.001
P4 5 3.001
P5 3 4.001
Draw four Gantt charts illustrating the execution of these process using FCFS, SJF, Priority
and RR (quantum=2) scheduling. Also calculate waiting time and turnaround time for each
scheduling algorithms.
13 (a) Discuss in detail the critical section problem and also write the algorithm for
ReadersWritersProblem with semaphores.
(Or)
13 (b) Consider a system that contains five processes P1,P2,P3,P4,P5 and the three resource
types A,B and C.Following are the resources types : A has 10, B has 5 and the resource type
C has 7 instances.

Process Allocation Max Available


A B C A B C A B C
P1 0 1 0 7 5 3 3 3 2
P2 2 0 0 3 2 2
P3 3 0 2 9 0 2
P4 2 1 1 2 2 2
P5 0 0 2 4 3 3

Answer the following questions using the banker’s algorithm:

i. What is the reference of the need matrix?


Ii.Determine if the system is safe or not.
iii. What will happen if the resource request (1, 0, 0) for process P1 can the system accept
this request immediately?

14 (a) Consider the following page reference string 1,2,3,4,2,1,5,6,2,1,3,7,6,3,2,1,3,6. How


many page faults would occur for the following replacement algorithms, assuming three and
four frames? Apply LRU replacement, FIFO replacement and Optimal replacement.

(Or)
14 (b) Explain in detail the concept of files and the various allocation methods used in file
systems.

15 (a) Explain the structure of Linux and how its core part, the Linux kernel, works? With a
neat sketch show the main parts of the Linux system.
(Or)
15 (b) Elaborate the concept of virtualization, providing a comprehensive overview of its
significance, underlying principles, various types, and practical applications within
computing environments.

You might also like