Operating Systems
VTU 2022 scheme (B.E. CSE and allied, from 2023-24), Integrated Professional Core Course (IPCC) · 100 marks: 50 SEE + 50 CIE, 4 credits (L:T:P 3:0:2). SEE is a 3-hour theory paper of 100 marks scaled to 50: 10 questions of 20 marks (2 per module, up to 3 sub-questions each), answer 5 full questions choosing one from each module; questions can come from the practical part too. CIE 50 = 25 theory (two internal tests plus other assessment, scaled) + 25 practical (15 for conduct, record and viva, 10 for a lab test). There is no separate practical SEE. Minimum 18/50 in SEE, 20/50 in CIE, 40/100 overall.
One-Night Pass Pack
An OS is a program that manages the computer hardware and acts as an intermediary between the user and the hardware (resource allocator and control program). Dual mode: a mode bit in hardware, 0 = kernel (monitor) mode, 1 = user mode. Privileged instructions (I/O, timer, interrupt control) run only in kernel mode; trying them in user mode causes a trap. A system call or interrupt switches user to kernel mode; the OS sets the bit back to user before returning. It protects the OS and other users from errant programs; a timer stops a program from holding the CPU forever.
Full-marks tip: Draw the figure: user process executing, system call (trap, mode bit = 0), kernel executes, return (mode bit = 1). Give two examples of privileged instructions. Write the definition from both user and system viewpoints.
Exam kal hai? Send this Pass Pack to your batch group.
Unit-wise syllabus
U1Introduction to Operating Systems and System Structures
Weightage: Equal share: 1 of 5 modules (~20%), 2 questions per module in SEE
U2Process Management, Multithreaded Programming and Process Scheduling
Weightage: Equal share: 1 of 5 modules (~20%), 2 questions per module in SEE
U3Process Synchronization and Deadlocks
Weightage: Equal share: 1 of 5 modules (~20%), 2 questions per module in SEE
U4Memory Management and Virtual Memory
Weightage: Equal share: 1 of 5 modules (~20%), 2 questions per module in SEE
U5File System, Secondary Storage and Protection
Weightage: Equal share: 1 of 5 modules (~20%), 2 questions per module in SEE
Curated video lectures
Free lectures from well-known educators, matched to units. Videos load only when you tap “Watch here”, to save data.
Operating Systems lectures (process, scheduling, synchronization, memory, files)
Prof. Mythili Vutukuru (IIT Bombay) · Playlist · 33 videos · English
Operating System complete playlist (all modules)
KnowledgeGATE by Sanchit Sir · Playlist · 82 videos · Hindi
Exam Guide Radar
Standard textbook
Abraham Silberschatz, Peter Baer Galvin and Greg Gagne, Operating System Principles, 8th Edition, Wiley India, 2015
Exam guide students buy
Sunstar Exam Scanner for VTU 3rd semester CSE (2022 scheme), or another VTU Operating Systems guide that prints code BCS303
Pick the 2022-scheme edition: question banks are arranged module-wise with solved VTU papers.
Local market tip
Check that the guide prints BCS303 and the 2022 scheme; older 21CS44 or 18CS43 books (4th semester) cover almost the same topics but follow a different module split, so buy the BCS303 edition before the first IA test.
Lab Viva Survival
BCS303 practical 1: Process system calls fork(), exec(), wait() and process termination
- Q. What does fork() return?
- → 0 in the child, the child's PID in the parent, and -1 if creation fails.
- Q. How many processes do three fork() calls in a row create?
- → 2^3 = 8 processes in total, including the original.
- Q. What is a zombie process and an orphan process?
- → A zombie has finished but its parent has not called wait(); an orphan's parent has exited and it is adopted by init/systemd.
BCS303 practical 2: CPU scheduling simulation (FCFS, SJF, Round Robin, Priority)
- Q. What happens if the Round Robin time quantum is very large or very small?
- → Very large makes it behave like FCFS; very small causes too many context switches and overhead.
- Q. Which scheduling algorithms are preemptive?
- → Round Robin, SRTF and preemptive priority. FCFS and non-preemptive SJF are not.
BCS303 practical 3: Producer-consumer using semaphores
- Q. What are wait() and signal() on a semaphore?
- → wait (P) decrements and blocks if the value is not positive; signal (V) increments and wakes a waiting process. Both are atomic.
- Q. What goes wrong if wait(mutex) is done before wait(empty) in the producer?
- → A producer can hold mutex while blocked on a full buffer, so the consumer can never enter: deadlock.
BCS303 practical 7: Page replacement (FIFO and LRU)
- Q. What is a page fault?
- → A reference to a page not in main memory; the OS traps, loads it from disk, updates the page table and restarts the instruction.
- Q. What is Belady's anomaly?
- → With FIFO, adding more frames can increase the number of page faults; LRU and Optimal never show it.
- Q. How can LRU be implemented?
- → With a counter (time stamp) per page or a stack of page numbers; the program usually keeps the last-used time of each frame.