Viva Question Set – 1 (30 Marks)
Part A–D
▾
1
What is the purpose of the Linux /proc file system?
1-2m
2
What information does the ps command display?
1-2m
3
What is the difference between user mode and kernel mode?
1-2m
4
Process API?
1-2m
5
What does the fork() system call do?
1-2m
6
What is the difference between fork() and execvp()?
1-2m
7
What is the role of the wait() system call?
1-2m
8
Need for IPC?
1-2m
9
What is a pipe in Inter-Process Communication?
1-2m
10
What is shared memory in IPC?
1-2m
11
What is the purpose of message queues?
1-2m
12
What is a thread? How is it different from a process?
1-2m
13
What is virtual memory?
1-2m
14
Need for address translation from logical to physical address?
1-2m
15
Different address translation schemes?
1-2m
16
Need for Virtual File System (VFS)?
1-2m
B1
Explain how you can find CPU cores and memory details using /proc.
3-4m
B2
Describe the process tree and how pstree helps visualize it.
3-4m
B3
Explain the steps involved in process creation using fork().
3-4m
B4
Explain how pipes work in Linux IPC.
3-4m
B5
What is context switching? Why does it occur?
3-4m
B6
Explain the difference between preemptive and non-preemptive scheduling.
3-4m
C1
Explain Round Robin CPU scheduling with an example. (TQ=2, P1:AT=0,BT=5 | P2:AT=1,BT=4 | P3:AT=2,BT=3)
5m
C2
Explain the Readers–Writers problem and how semaphores solve it.
5m
D1
Explain the Banker's Algorithm and how it determines a safe sequence.
5m
D2
What is deadlock detection and how does it differ from deadlock avoidance?
5m
Viva Question Set – 2 (30 Marks)
Part A–E
▾
1
What is the purpose of the top command in Linux?
1-2m
2
What does the gdb debugger do?
1-2m
3
What information does the file command provide?
1-2m
4
What is the role of the time command?
1-2m
5
What is the purpose of the fuser command?
1-2m
7
What is a semaphore?
1-2m
8
What is the difference between binary semaphore and counting semaphore?
1-2m
9
What is thrashing in memory management?
1-2m
10
What is a page fault?
1-2m
B1
Describe the three IPC methods: Pipe, Message Queue, and Shared Memory.
3-4m
B2
Explain the Dining Philosophers Problem.
3-4m
C1
Compare FCFS, SRTF, Priority Scheduling, and Round Robin.
5m
D1
What are the four necessary conditions of deadlock?
4m
E1
Compare FIFO, LRU, and Optimal page replacement algorithms.
5m
OS Lab Internal Exam – Viva (30 Marks)
Internal
▾
1
What is the use of /proc? How to find CPU cores and memory? (3m)
3m
2
Describe the process tree and how the pstree command helps visualize it. (2m)
2m
3
Purpose of top, gdb and time command? (3m)
3m
4
Explain IPC mechanisms. Differentiate pipe and message queue using builtins. (5m)
5m
5
What are the four necessary conditions of deadlock? (4m)
4m
6
Explain the Deadlock Detection Algorithm with steps. (5m)
5m
7
Explain the Banker's Algorithm and how it determines a safe sequence. (5m)
5m
8
Explain the need for page replacement and give one algorithm example. (3m)
3m
University Exam – Question Set 1 (Matrix Threads + Viva)
Univ Q1
▾
Impl
Multithreaded Matrix Operations (Addition, Multiplication, Determinant)
Program
V1
What is the use of /proc file system? CPU cores and memory using /proc. (3m)
3m
V2
Linux programming commands: ps, strace (2m)
2m
V3
Define address translation in the paging scheme. (2m)
2m
V4
Banker's Algorithm – Safety Checking. (3m)
3m
V5
Describe how semaphores prevent race conditions. Semaphore operations. (3m)
3m
V6
Round Robin Scheduling: TQ=2ms, P1(AT=0,BT=5), P2(AT=1,BT=4), P3(AT=2,BT=3) (3m)
3m
University Exam – Question Set 2 (Disk Scheduling)
Univ Q2
▾
Impl
SSTF and LOOK Disk Scheduling: requests=[98,183,41,122,14,124,65,67], head=53
Program
V1
Linux programming commands: gdb, objdump (2m)
2m
V2
Define address translation using segmentation. (2m)
2m
V3
Round Robin: TQ=1ms, A(0,8), B(1,1), C(3,2), D(4,1), E(2,5). Find Avg WT. (3m)
3m
Question Set 3 – Dining Philosophers + Non-Preemptive SJF
Set 3
▾
Impl
Dining Philosophers with reversed order for last philosopher
Program
V1
/proc: Track processes forked since bootup and context switches. (3m)
3m
V2
Linux commands: od, xxd (2m)
2m
V3
Non-Preemptive SJF: P1(BT=8), P2(BT=4), P3(BT=2), P4(BT=6), all arrive at t=0 (3m)
3m
Question Set 4 – Paging Address Translation + Priority Scheduling
Set 4
▾
Impl
Paging Address Translation: VA=10000, VAS=4MB, PageSize=4KB
Program
V1
Linux commands: time, top (2m)
2m
V2
Address translation using hybrid paging and segmentation. (2m)
2m
V3
Non-Preemptive Priority Scheduling: P1(AT=0,BT=5,P=2), P2(AT=1,BT=3,P=1), P3(AT=2,BT=4,P=3), P4(AT=3,BT=2,P=2) — lower # = higher priority (3m)
3m
Question Set 5 – Readers-Writers (Writer Priority) + SRTF
Set 5
▾
Impl
Readers-Writers with Writer Priority
Program
V1
Explain Process API in Linux. (2m)
2m
V2
Differentiate process and thread. Multithreading models. (4m)
4m
V3
Preemptive SJF (SRTF): P1(0,8), P2(1,4), P3(2,2), P4(3,1). Gantt + Avg WT. (3m)
3m
Question Set 6 – FIFO/LRU Page Replacement + SRTF
Set 6
▾
Impl
FIFO + LRU Page Replacement. Ref: [0,1,2,0,1,3,0,3,1,2,1], Frames=3
Program
V1
Differentiate between mode switch and context switch. (2m)
2m
V2
Define process states. (3m)
3m
V3
What is shared memory in IPC? Discuss 2 builtins. (3m)
3m
V4
SRTF: A(0,3), B(1,3), C(4,3), D(6,2). Find Avg WT, TAT, RT. (3m)
3m
Implementation Programs – Internal Exam
7 Programs
▾
1
Multithreading: Thread1 prints first 20 even numbers, Thread2 prints first 20 odd numbers with synchronization.
2
FCFS CPU Scheduling
3
Readers-Writers Problem (Reader Priority)
4
Dining Philosophers (deadlock-free semaphore solution)
5
Paging Address Translation
6
FIFO Page Replacement Algorithm
7
LOOK Disk Scheduling Algorithm