Online Edition
MSBTE Notes and Info Logo
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

MSBTE NOTES AND INFO

ALSO KNOWN AS ACADEMIA • OFFICIAL MODEL ANSWER FORMAT
Helpline / Community: 7083236221
Official Portal: msbtenotes-info.netlify.app
• Verified Faculty Solutions •
COURSE / SUBJECT: OPERATING SYSTEMS
SUBJECT CODE: 315319 (OSY)
SCHEME & SEMESTER: K-SCHEME (5th SEM)
EXAM SESSION & MARKS: WINTER 2026 (70 MARKS)

How Much to Write Per Mark (Follow strictly for Full Marks in MSBTE)

Marks Expected Length Must Contain for Full Credit
2 Marks (Q1) 3–4 lines / 2 distinct points Definition + Example / Command Syntax
4 Marks (Q2, Q3, Q4) ¾ page (6–8 bullet points) Definition + 4–6 explained points + Labelled Diagram / Comparison Table
6 Marks (Q5, Q6) 1¼–1½ pages In-depth definition + 6–8 points + Diagram + Real-world OS Example + Conclusion
Numerical (FCFS, SRTF, RR, Page Faults) Full stepwise calculation Gantt Chart / Allocation Matrix + Step Table + Formulas + Final Answer Underlined
Official Important Instructions to the Examiner: As per Board Circular
  • The answers should be evaluated on key concepts and technical keywords, not word-to-word rote memorization.
  • While assessing diagrams, full credit is awarded for principal components, correct directional arrows, and clear labelling.
  • Stepwise marks are given in all numerical problems. Candidate's intermediate steps must be credited even if the final algebraic sum has minor calculation variation.
  • For system calls and shell commands, equivalent syntax or parameter orders should be awarded proportionate credit.
Official 4-Column Board Format 100% Fit-To-Screen
Q. Sub Model Answer & Solution Marks
Q.1 Attempt any FIVE of the following: 5 × 2 = 10 Marks
Q.1 a)

State any two objectives of an Operating System.

  1. Convenience (User Interface Abstraction): Makes the computer hardware user-friendly and convenient to operate by providing clean graphical or command-line interfaces and concealing low-level hardware intricacies.
  2. Efficiency (Resource Management): Ensures optimal, balanced, and fair utilization of computer hardware resources (CPU, RAM, storage devices, and I/O peripherals) without letting crucial resources sit idle unnecessarily.

Note for Examiner: Additional valid objectives such as ability to evolve, hardware abstraction, and program execution support should be credited equally.

1M each
Convenience: 1M
Efficiency: 1M
Total: 2M
Q.1 b)

Define Process and PCB (Process Control Block).

1. Process: A program in execution is called a process. While a program is a passive entity stored on disk (e.g. code.c or an executable app.exe), a process is an active entity loaded into main memory containing the program counter, stack, data section, and heap.
2. PCB (Process Control Block): A data structure maintained by the Operating System for each process that stores all metadata needed to manage, schedule, and context-switch that process. Key fields include: Process ID (PID), Process State, Program Counter (PC), CPU Registers, Scheduling Priority, Memory Management Limits, and I/O Status. It is also termed a Task Control Block.
1M each
Process Def: 1M
PCB Def & Fields: 1M
Total: 2M
Q.1 c)

Define CPU-bound and I/O-bound programs.

  • CPU-bound Program: A program that spends the majority of its execution time performing computational processing. It exhibits long CPU bursts and few I/O operations.
    Examples: Scientific simulations, 3D video rendering, heavy matrix multiplication, cryptographic hashing.
  • I/O-bound Program: A program that spends the majority of its time waiting for input/output operations to complete. It exhibits short CPU bursts interspersed with frequent, prolonged I/O requests.
    Examples: Text editors, file copy utilities, database queries, interactive web browsers.
1M each
CPU-bound: 1M
I/O-bound: 1M
Total: 2M
Q.1 d)

Define Memory Compaction and Fragmentation.

1. Compaction: A memory management technique of rearranging allocated memory partitions in physical RAM so that all scattered free memory holes are consolidated into one single, contiguous free block. Compaction eliminates external fragmentation, but is feasible only when relocation is dynamic at execution time.
2. Fragmentation: Inefficient memory utilization where storage space is wasted and cannot be assigned to processes:
  • Internal Fragmentation: Unused space inside an allocated memory block (e.g., allocating a 100 KB partition to an 80 KB process wastes 20 KB internally).
  • External Fragmentation: Total free memory across RAM is adequate to satisfy a request, but storage is non-contiguous, preventing allocation.
1M each
Compaction: 1M
Fragmentation: 1M
Total: 2M
Q.1 e)

State any four basic file operations.

1. Create: Finds free space in the storage system and creates a new directory entry with file metadata.
2. Open: Loads file directory attributes and disk block addresses into memory and returns a file descriptor handle.
3. Read: Transfers bytes from the file on disk at the current read-pointer into a memory buffer.
4. Write: Writes data from a memory buffer to the specified position in the file and advances the write-pointer.

Other valid operations: Close, Delete, Seek / Reposition, Truncate (0.5M each for any 4).

0.5M × 4
Four correct file operations listed
Total: 2M
Q.1 f)

Differentiate between Preemptive and Non-Preemptive CPU Scheduling (any two points).

Parameter Preemptive Scheduling Non-Preemptive Scheduling
1. CPU Release CPU can be forcibly taken away from a running process before it finishes (due to time-slice expiry or high priority arrival). Once assigned, the process holds the CPU until it voluntarily terminates or initiates an I/O wait.
2. Overhead Frequent context switching introduces higher computational overhead. Fewer context switches; lower overhead.
3. Typical Algorithms Round Robin (RR), Shortest Remaining Time First (SRTF), Priority (Preemptive). First-Come First-Served (FCFS), Shortest Job First (SJF Non-preemptive).
1M each
Any 2 comparison points correctly tabulated
Total: 2M
Q.1 g)

State the syntax and function of kill and wait commands in UNIX/Linux.

Command Syntax Function / Description
kill kill [-signal] PID
e.g., kill -9 2048
Transmits a termination or control signal to a running process identified by its PID. The -9 flag sends SIGKILL to forcefully terminate an unresponsive process.
wait wait [PID / job_id]
e.g., sleep 10 & wait
Causes the calling shell or parent process to suspend execution and wait until child/background processes finish execution, subsequently returning their exit status.
1M each
kill Syntax & Fn: 1M
wait Syntax & Fn: 1M
Total: 2M
Q.2 Attempt any THREE of the following: 3 × 4 = 12 Marks
Q.2 a)

Explain Time Sharing Operating System with its features and architecture.

Definition: A Time-Sharing (Multitasking) Operating System is an extension of multiprogramming in which the CPU executes multiple jobs by rapidly switching among them using small allotted time intervals called time slices or time quanta (typically 10 to 100 ms). The switching happens so quickly that each user interacting via a terminal experiences a dedicated, responsive machine.
CPU & OS (Round-Robin Scheduler) Time Quantum: 10–100 ms User Terminal 1 User Terminal 2 User Terminal 3 User Terminal 4 CPU Time-Slice Allocation (Rapid Slicing) T1 (10ms) T2 (10ms) T3 (10ms) T4 (10ms) T1 (10ms) T2 ...
Fig 2.1: Time Sharing Operating System Architecture & Time Quantum Allocation
Key Features of Time-Sharing OS (Write any 6):
  1. Time Quantum / Slicing: CPU provides each process an equal fixed duration of time. If a process does not complete within its quantum, it is preempted and returned to the ready queue.
  2. Rapid Context Switching: CPU switches from one active terminal process to another seamlessly without human notice.
  3. Interactive Short Response Time: Response time is kept extremely low (often < 1 second), making it ideal for interactive terminal tasks.
  4. Multi-User Concurrency: Multiple users can access computational resources and run simultaneous programs on one central server.
  5. Round-Robin Scheduling: Implements a circular FIFO queue to guarantee fair CPU sharing without job starvation.
  6. Memory Swapping: Swaps inactive or waiting processes to secondary disk storage (virtual memory) to accommodate active processes in main memory.
  7. System Resource Protection: Memory segments and file directories are strictly segregated and protected among concurrent users.
Real-world Examples: UNIX, Linux, Multics, Windows Server terminal services.
Key Limitation: High CPU switching overhead and complexity of multi-tenant security/integrity.
4 Marks
Definition: 1M
Labelled Diagram: 1M
Features (4 to 6): 2M
Total: 4M
Q.2 b)

Draw and explain the Process State Transition Diagram.

NEW admit READY dispatch RUNNING exit TERMINATED interrupt / time-slice expired WAITING (I/O or Event Blocked) I/O or event wait I/O completed
Fig 2.2: Standard 5-State Process Model with Transitions
Explanation of 5 Fundamental Process States:
  • 1. NEW: The process is initially being created by the OS and its PCB is being generated; it has not yet entered main memory.
  • 2. READY: The process has been loaded into main RAM and is positioned in the ready queue, waiting for the short-term CPU scheduler to assign CPU time.
  • 3. RUNNING: Instructions of the process are actively being executed by the CPU core (only one process per CPU core can run at a time).
  • 4. WAITING / BLOCKED: The process cannot execute because it is waiting for an external event to occur, such as I/O transfer completion, child process exit, or user input.
  • 5. TERMINATED: The process has concluded execution or was aborted; the OS deallocates its memory partition and cleans up its PCB.
Process State Transitions:
Admit: Long-term scheduler moves process from NEW → READY.
Dispatch: Short-term scheduler assigns CPU from READY → RUNNING.
Interrupt: Timer interrupt or higher priority arrival shifts RUNNING → READY.
Event Wait: Process initiates an I/O request and shifts RUNNING → WAITING.
Event Completion: I/O finishes or event occurs; process moves WAITING → READY.
Exit: Process ends operations and transitions RUNNING → TERMINATED.

Important Exam Rule: Transitions from Waiting → Running or Ready → Waiting are physically impossible in standard OS design.

4 Marks
State Diagram: 2M
State Explanations: 1M
Transitions: 1M
Total: 4M
Q.2 c)

Explain Fixed-Size (Static) Memory Partitioning with a neat diagram.

Concept: In Fixed-Size (Static) Partitioning, system main memory is divided at system configuration time into a fixed number of non-overlapping partitions of predetermined fixed sizes (either equal or unequal). Each partition accommodates exactly one process at a time; therefore, the maximum degree of multiprogramming is strictly bounded by the number of partitions.
0 KB 64 KB 164 KB 314 KB 514 KB 764 KB Operating System (64 KB) Process P1 (80 KB) 20 KB Free Internal Frag. Part. 1 (100 KB) Process P2 (150 KB — 100% Utilized) Part. 2 (150 KB) Process P3 (120 KB) 80 KB Wasted Internal Frag. Part. 3 (200 KB) Partition 4 (250 KB) — FREE Part. 4 (250 KB)
Fig 2.3: Fixed-Size Static Memory Partitioning with Internal Fragmentation
Operational Working:
  1. The OS maintains a Partition Table storing the base starting address, partition size, and current allocation status (Free/Allocated) for all blocks.
  2. When a new process arrives, the OS scans the partition table to select an available free partition that is equal to or larger than the process footprint.
  3. Protection is guaranteed via Base and Limit registers to prohibit a process from accessing adjacent partitions or the operating system memory.
  4. Upon process termination, the partition is reset to "Free" status for subsequent processes.
Advantages:
  • Extremely simple to manage and implement.
  • Negligible OS management overhead.
  • Requires minimal hardware address-translation support.
Disadvantages:
  • Internal Fragmentation: Space left inside an allocated partition is wasted (e.g., 20 KB in Part 1 and 80 KB in Part 3 above).
  • Process Size Limitation: A process exceeding the largest partition cannot be loaded without overlays.
  • Fixed multiprogramming degree regardless of small program sizes.
4 Marks
Definition: 1M
Labelled Diagram: 1M
Working & Pros/Cons: 2M
Total: 4M
Q.2 d)

Compare CLI (Command Line Interface) and GUI (Graphical User Interface) based Operating Systems.

Sr. Parameter CLI (Command Line Interface) GUI (Graphical User Interface)
1 Mode of Interaction User interacts by typing textual commands and flags at a command prompt. User interacts with visual metaphors: windows, icons, menus, and pointers (WIMP).
2 Input Peripherals Primarily relies only on a keyboard. Requires a pointing device (mouse / touchscreen) along with keyboard.
3 Learning Curve Steep; exact syntax, options, and commands must be memorized. Intuitive and user-friendly; visual icons are self-explanatory for beginners.
4 Execution Speed Very fast for power users; easily automated via shell scripts. Slower execution due to multi-level window navigation and mouse clicks.
5 Resource Consumption Minimal memory (RAM) and CPU footprint; no graphics rendering card needed. Substantially higher RAM, CPU, and GPU requirements for desktop rendering.
6 Error Susceptibility High; typographical errors cause immediate command abortion. Low; guided dialogs, confirmation boxes, and undo operations avoid mistakes.
7 Examples MS-DOS, Linux Bash Shell, PowerShell Windows 11, macOS, Ubuntu GNOME, Android
4 Marks
Any 4 to 6 parameters compared: 4M
Total: 4M
Q.3 Attempt any THREE of the following: 3 × 4 = 12 Marks
Q.3 a)

Define Deadlock and explain any two necessary conditions for a deadlock to occur.

Definition of Deadlock: A deadlock is a condition in a multiprogramming system where a set of processes are permanently blocked because each process holds at least one shared resource while waiting to acquire another resource currently held by another process in the same set, resulting in an indefinite freeze.
P1 R1: Printer R2: Scanner P2 Held by P1 P1 Requests Held by P2 P2 Requests CYCLE!
Fig 3.1: Circular Wait Dependency Cycle in Resource Allocation Graph (Deadlock Condition)
Four Necessary (Coffman) Conditions for Deadlock:

Deadlock can arise if and only if all four conditions hold simultaneously: (1) Mutual Exclusion, (2) Hold and Wait, (3) No Preemption, (4) Circular Wait.

1. Mutual Exclusion: At least one resource must be held in a non-shareable mode — only one process can use the resource at any given moment. If another process requests that non-shareable resource, the requesting process must wait until it is formally released.
Example: A physical printer or tape drive can execute only one print job at a time. Read-only shared files do not cause mutual exclusion.
2. Hold and Wait: A process must be actively holding at least one resource while waiting to acquire additional resources that are currently allocated to and held by other operating processes.
Prevention: OS can require a process to request and be allocated all necessary resources upfront before starting execution.
Summary of other two conditions:
• No Preemption: Allocated resources cannot be forcibly seized; they are released only voluntarily by the holding process.
• Circular Wait: A closed chain of processes {P0, P1, ..., Pn} exists such that P0 waits for a resource held by P1, and Pn waits for P0.
4 Marks
Definition: 1M
List 4 Conditions: 1M
2 Conditions Explained + Diagram: 2M
Total: 4M
Q.3 b)

Explain CPU Scheduling Criteria with relevant formulas.

To compare and evaluate different CPU scheduling algorithms, operating system designers rely on the following standard performance criteria:

1. CPU Utilization (Maximize): Percentage of time the CPU core is executing useful user/kernel tasks rather than idling.
Utilization = (CPU Busy Time / Total Time) × 100%
2. Throughput (Maximize): Number of completed processes per unit of elapsed time (e.g., 50 processes/minute).
Throughput = Total Completed Processes / Total Time
3. Turnaround Time (TAT) (Minimize): Interval from the instant a process is submitted to its complete execution finish.
TAT = Completion Time (CT) − Arrival Time (AT)
4. Waiting Time (WT) (Minimize): Cumulative duration spent by a process sitting idle in the ready queue awaiting CPU time.
WT = Turnaround Time (TAT) − Burst Time (BT)
5. Response Time (Minimize): Time elapsed from initial process submission until the very first CPU response/output is produced. Crucial in interactive and time-sharing operating environments.
Response Time = Time of First CPU Allocation − Arrival Time (AT)

Additional criteria: Fairness (equal opportunity for all tasks) and Starvation Avoidance (mitigated via Aging).

4 Marks
Any 4 criteria explained with formulas (1M each)
Total: 4M
Q.3 c)

Explain Bitmap and Linked List Free-Space Management techniques for disk storage.

1. Bitmap (Bit Vector) Method:

The disk free-space list is implemented as a bit map vector where each disk block is represented by a single bit:

bit = 0 → Block is Free  |  bit = 1 → Block is Allocated
Block:01234567
Bit:11001001
State:AllocAllocFreeFreeAllocFreeFreeAlloc
Advantage: Simple and extremely fast in finding the first free block or continuous runs of free blocks via hardware word bit-scans.
Disadvantage: For large terabyte disks, the bitmap becomes too big to hold entirely in main RAM.
2. Linked List (Free List) Method:

All unallocated free disk blocks are linked together in a linked list structure. Each free block contains a pointer referencing the next available free block. The OS preserves a pointer to the first free block (Head Pointer) in memory.

[Head: Blk 2] → [Blk 2 | ptr=3] → [Blk 3 | ptr=5] → [Blk 5 | ptr=6] → [Blk 6 | ptr=NULL]
Advantage: No disk storage space is wasted on tables because pointers reside directly within the unallocated blocks themselves.
Disadvantage: Traversal is slow (requires sequential disk reads); cannot find contiguous blocks efficiently.
4 Marks
Bitmap + Diagram: 2M
Linked List + Diagram: 2M
Total: 4M
Q.3 d)

Explain Two-Level Directory and Tree-Structured Directory with diagrams.

1. Two-Level Directory Structure:

To prevent name collisions between different users in multi-user environments, a Master File Directory (MFD) is created at the top level. The MFD is indexed by user name/ID, and each entry points to a distinct User File Directory (UFD). Each user operates within their own isolated UFD.

[MFD (Master Directory)]
↓
└── [User 1 UFD] → [fileA, fileB, test.c]
└── [User 2 UFD] → [fileA (same name allowed!), proj.docx]
└── [User 3 UFD] → [data.csv, lab.py]

Pros/Cons: Solves name conflicts among users; however, users cannot collaborate easily, and sub-directories cannot be created within a user account.

2. Tree-Structured Directory:

The standard hierarchical directory structure in modern operating systems (Windows, Linux). An arbitrary depth of directory tree extends downwards from a single Root Directory (/ or C:\). Directories can contain regular files as well as nested sub-directories.

Root ( / )
└── /bin → [ls, cp, rm]
└── /home
    └── /student → [/notes, /assignments → [osy.pdf]]
└── /etc → [passwd, hosts]

Pros: Full flexible grouping, powerful search, supports both Absolute Paths (/home/student/notes) and Relative Paths (./notes).

4 Marks
Two-Level + Diagram: 2M
Tree-Structured + Diagram: 2M
Total: 4M
Q.4 Attempt any THREE of the following: 3 × 4 = 12 Marks
Q.4 a)

State any four responsibilities of Memory Management and File Management.

Memory Management Responsibilities:
  1. Tracking which parts of physical memory are currently in use and by which active process.
  2. Deciding which processes (or data) to load into RAM when memory space becomes available.
  3. Allocating dynamic memory space when a process requests it during execution.
  4. Deallocating memory partitions when processes terminate or release buffers.
File Management Responsibilities:
  1. Creating, modifying, and deleting files and directories on secondary storage.
  2. Providing low-level primitives (system calls) to manipulate files (open, read, write, seek).
  3. Mapping abstract logical files onto physical storage blocks on disk sectors.
  4. Managing storage security, user permissions, and backup/restore mechanisms.
4 Marks
Memory Mgmt (4 pts): 2M
File Mgmt (4 pts): 2M
Total: 4M
Q.4 b)

Given three processes P1, P2, P3 with Arrival and Burst Times. Calculate Average Waiting Time using FCFS Scheduling.

Given Data: Process P1 (AT = 0 ms, BT = 5 ms), Process P2 (AT = 1 ms, BT = 3 ms), Process P3 (AT = 2 ms, BT = 8 ms).

1. CPU Execution Gantt Chart:

FCFS CPU Execution Gantt Chart P1 (5 ms) P2 (3 ms) P3 (8 ms) 0 5 8 16 (ms)
Fig 4.1: FCFS Process Timeline (Completion Time = 16 ms)

2. Stepwise Process Calculation Table:

Process Arrival Time (AT) Burst Time (BT) Completion Time (CT) TAT = CT − AT WT = TAT − BT
P1 0 5 5 5 − 0 = 5 ms 5 − 5 = 0 ms
P2 1 3 8 8 − 1 = 7 ms 7 − 3 = 4 ms
P3 2 8 16 16 − 2 = 14 ms 14 − 8 = 6 ms
Sum (Σ): ΣTAT = 26 ms ΣWT = 10 ms
Final Calculation Steps:
• Average Waiting Time (AWT) = ΣWT / n = (0 + 4 + 6) / 3 = 10 / 3 = 3.33 ms
• Average Turnaround Time (ATAT) = ΣTAT / n = (5 + 7 + 14) / 3 = 26 / 3 = 8.67 ms
4 Marks
Gantt Chart: 1M
Table Calculations: 1.5M
Formula & Final Ans: 1.5M
Total: 4M
Q.4 c)

Differentiate between Paging and Segmentation memory management schemes with diagrams.

Paging Concept: Logical memory is divided into fixed-size blocks called Pages. Physical memory is divided into blocks of the exact same size called Frames. A Page Table maps logical page number (p) to frame number (f).
Logical Address: [Page p | Offset d]
Physical Address = (Frame f × Page_Size) + d
Segmentation Concept: Logical memory is divided into variable-size logical modules called Segments (e.g. main routine, stack, symbol table). A Segment Table maps segment number (s) using Base and Limit.
Logical Address: [Segment s | Offset d]
Check: if (d < Limit) Physical = Base + d;
Parameter Paging Segmentation
1. Block Size Fixed block sizes (typically 4 KB). Variable sizes depending on logical module length.
2. View / Division Managed transparently by OS/hardware (invisible to user). Programmer/compiler oriented logical division (visible).
3. Mapping Table Page Table stores Frame numbers. Segment Table stores Segment Base and Limit addresses.
4. Fragmentation Suffers only Internal Fragmentation (last page). Suffers External Fragmentation (needs compaction).
5. Protection / Sharing Difficult to logically protect parts of code. Very easy (e.g., mark code segment read-only).
4 Marks
Paging Concept & Diag: 1M
Seg Concept & Diag: 1M
Comparison Table: 2M
Total: 4M
Q.4 d)

Describe any four file-management system calls in UNIX/Linux with syntax and purpose.

System Call Syntax (C Signature) Functional Description
creat() int creat(char *path, mode_t mode); Creates a new empty regular file with the specified read/write permissions. Returns an integer file descriptor handle (or -1 on error).
open() int open(char *path, int flags); Opens an existing file for reading/writing (e.g. O_RDONLY, O_WRONLY, O_RDWR) and assigns a file descriptor pointing to file table entry.
read() ssize_t read(int fd, void *buf, size_t count); Transfers up to count bytes from the open file reference fd into user buffer buf. Returns number of bytes read (0 indicates EOF).
write() ssize_t write(int fd, void *buf, size_t count); Transfers count bytes from buffer buf into the open file identified by descriptor fd at the current file offset pointer.

Other valid file calls: close(fd), lseek(fd, offset, whence) (1M each for any 4 calls).

1M × 4
Any 4 system calls with syntax & function: 4M
Total: 4M
Q.4 e)

Define Context Switching. Describe the stepwise switching procedure with a neat diagram.

Definition: Context Switching is the administrative procedure performed by the OS kernel of saving the state (context) of the currently running process in its PCB and loading the saved state of another process from its respective PCB, thereby allowing a CPU core to switch execution among multiple tasks. It constitutes pure computational overhead since the CPU performs zero user computation during the switch.
Process P1 Operating System Process P2 Executing 1. Save context → PCB1 2. Reload context ← PCB2 Executing 3. Save context → PCB2 4. Reload context ← PCB1 Executing...
Fig 4.2: CPU Context Switch Sequence Between Process 1 and Process 2
Step-by-Step Procedure of Context Switching:
  1. An external timer interrupt, hardware trap, or system call occurs, transferring CPU control from user mode into kernel mode.
  2. The OS dispatcher suspends Process P1 and saves its current hardware state (Program Counter, CPU registers, stack pointer, PSW) into PCB1.
  3. The OS updates the process status of P1 from RUNNING to READY (or WAITING) and repositions it in the appropriate kernel queue.
  4. The CPU scheduler algorithm selects the next scheduled process (Process P2) from the ready queue.
  5. The OS dispatcher accesses PCB2, restores its memory mapping tables (page directory, TLB, cache flush), and reloads saved register contents.
  6. The process state of P2 is updated from READY to RUNNING.
  7. The program counter (PC) from PCB2 is loaded into the CPU hardware register, and Process P2 resumes active instruction execution.
4 Marks
Definition: 1M
Sequence Steps: 1.5M
Labelled Diagram: 1.5M
Total: 4M
Q.5 Attempt any TWO of the following: 2 × 6 = 12 Marks
Q.5 a)

Explain the purpose and functions of the following Windows OS administration tools (2 marks each):

i) Performance Monitor (perfmon.msc) Win + R → perfmon
  • An administrative tool used for real-time monitoring of CPU, RAM, disk I/O, and network subsystems.
  • Utilizes visual Performance Counters such as Processor \ % Processor Time, Memory \ Available MBytes, and PhysicalDisk \ Avg. Disk Queue Length.
  • Renders performance data as line graphs, histogram bar charts, or numerical text reports to identify hardware bottlenecks.
  • Provides Data Collector Sets to log system metrics over hours or days for capacity planning and diagnostic baselines.
  • Enables administrators to configure automated threshold alerts (e.g., trigger an alert script if CPU usage exceeds 90% for 5 minutes).
ii) Task Scheduler (taskschd.msc) Win + R → taskschd.msc
  • Used to automate repetitive administrative tasks and maintenance scripts to run unattended at scheduled times.
  • Structured around Triggers (time of day, system boot, user logon, or system event ID) and Actions (launch program, execute PowerShell/batch script).
  • Provides granular operational conditions (e.g., run only if system is idle, run only when connected to AC power).
  • Can execute tasks with highest elevated administrator privileges whether a user is logged on or not.
  • Common Use Cases: Automated nightly data backups at 11:00 PM, weekly disk defragmentation, and periodic antivirus scans.
iii) Device Manager (devmgmt.msc) Win + R → devmgmt.msc
  • Displays an organized, hierarchical graphical tree of all hardware devices and peripherals installed in the computer.
  • Allows administrators to inspect hardware status, driver versions, manufacturer details, and assigned system resources (IRQs, I/O memory ranges, DMA channels).
  • Provides management actions: Update Driver, Roll Back Driver, Disable Device, Uninstall Device.
  • Features "Scan for hardware changes" to auto-detect newly connected Plug-and-Play devices.
  • Troubleshooting indicator: Highlights faulty hardware with a yellow exclamation mark (!) or disabled devices with a down-arrow (↓), showing standardized diagnostic error codes (e.g. Code 10, Code 28).
2M × 3
Perf. Monitor: 2M
Task Scheduler: 2M
Device Manager: 2M
Total: 6M
Q.5 b)

Given reference string of 20 page requests: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 with 3 memory frames. Calculate page faults and hit ratio using:

(1) Optimal Page Replacement  |  (2) LRU (Least Recently Used) Page Replacement

1. OPTIMAL (OPT / MIN) Algorithm (3 Marks) Rule: Replace page that will NOT be used for longest time in FUTURE
Steps 1 to 10:
Step:12345678910
Ref:7012030423
F17772222222
F2–000000444
F3––11133333
StatusFFFFHFHFHH
Steps 11 to 20:
Step:11121314151617181920
Ref:0321201701
F12222222777
F20000000000
F33331111111
StatusFHHFHHHFHH
• Total Page Faults (Optimal) = 9  |  Total Hits = 11
• Hit Ratio = 11 / 20 = 55.0%  |  Fault Ratio = 9 / 20 = 45.0%
2. LEAST RECENTLY USED (LRU) Algorithm (3 Marks) Rule: Replace page that has NOT been used for longest time in PAST
Steps 1 to 10:
Step:12345678910
Ref:7012030423
F17772222444
F2–000000003
F3––11133322
StatusFFFFHFHFFF
Steps 11 to 20:
Step:11121314151617181920
Ref:0321201701
F10001111111
F23333300000
F32222222777
StatusFHHFHFHFHH
• Total Page Faults (LRU) = 12  |  Total Hits = 8
• Hit Ratio = 8 / 20 = 40.0%  |  Fault Ratio = 12 / 20 = 60.0%
AlgorithmPage FaultsPage HitsHit RatioEvaluation Result
Optimal (OPT)91155%Theoretical benchmark (unrealizable in real-time OS)
LRU12840%Practical approximation of optimal replacement
6 Marks
Optimal Trace + Calc: 3M
LRU Trace + Calc: 3M
Total: 6M
Q.5 c)

Compare Contiguous, Linked, and Indexed File Allocation methods with labelled diagrams.

1. Contiguous Allocation
Dir → [Start: 2, Len: 3]
Disk: [0][1][2][3][4][5][6]
Occupies linear adjacent blocks.
2. Linked Allocation
Dir → [Start: 9, End: 25]
[9]→[16]→[1]→[10]→[25]→NULL
Each block contains data + pointer.
3. Indexed Allocation
Dir → [Index Blk: 19]
Blk 19 → {{9, 16, 1, 10, 25}}
One index block holds all disk pointers.
Sr. Parameter Contiguous Allocation Linked Allocation Indexed Allocation
1 Core Principle File occupies a contiguous sequence of disk sectors. File is a linked list of scattered disk blocks. Pointers to all scattered file blocks are centralized into an index block.
2 Directory Entry Starting block address + file length (number of blocks). Pointer to first block and pointer to last block. Address pointer to the dedicated Index Block.
3 Sequential Access Superb & fastest; minimum disk head movement. Good; sequentially follows next-pointers. Good; reads pointers sequentially from index table.
4 Direct (Random) Access Very easy and fast: Block i = Start + i. Extremely slow / impractical; requires traversing i disk reads. Fast & direct: Index block directly yields block i.
5 Fragmentation Severe External Fragmentation (demands disk compaction). Zero external fragmentation. Zero external fragmentation; suffers table overhead.
6 File Growth Difficult; fails if adjacent contiguous block is occupied. Trivial; append any free block anywhere on disk. Easy, but constrained by index block size (solved by multi-level index).
7 Real-world Use CD-ROMs, DVDs, Swap Partitions FAT File System UNIX / Linux inode, NTFS
Conclusion: Contiguous allocation is optimal for read-only optical media and swap areas. Linked allocation suits sequential batch files. Indexed allocation is the best modern general-purpose design supporting fast direct access without external fragmentation.
6 Marks
Diagrams: 2M
Comparison Table: 3M
Conclusion: 1M
Total: 6M
Q.6 Attempt any TWO of the following: 2 × 6 = 12 Marks
Q.6 a)

Given four processes P1, P2, P3, P4 with Arrival and Burst Times. Calculate Average Waiting Time using:

Process Table: P1 (AT=0, BT=8), P2 (AT=1, BT=4), P3 (AT=2, BT=9), P4 (AT=3, BT=5).
▸ Part 1: Preemptive SJF / SRTF (Shortest Remaining Time First) (3 Marks) Rule: Preempt if newly arrived job has smaller remaining burst
• t = 0: Only P1 is present → P1 starts executing.
• t = 1: P2 arrives with BT=4. P1 has remaining time = 7. Since 4 < 7, P1 is preempted and P2 runs until completion at t = 5.
• t = 5: Available processes: P1 (rem 7), P3 (rem 9), P4 (rem 5). Smallest remaining is P4 (5) → P4 runs until completion at t = 10.
• t = 10: Available: P1 (rem 7), P3 (rem 9). Smallest is P1 (7) → P1 runs until completion at t = 17.
• t = 17: Only P3 (9) remains → P3 runs until completion at t = 26.
Preemptive SJF (SRTF) Gantt Chart P1 P2 (4 ms) P4 (5 ms) P1 (rem 7 ms) P3 (9 ms) 0 1 5 10 17 26 (ms)
Fig 6.1: SRTF Scheduling Gantt Chart (Average Waiting Time = 6.5 ms)
ProcessATBTCTTAT = CT − ATWT = TAT − BT
P1081717 − 0 = 1717 − 8 = 9 ms
P21455 − 1 = 44 − 4 = 0 ms
P3292626 − 2 = 2424 − 9 = 15 ms
P4351010 − 3 = 77 − 5 = 2 ms
Sum (Σ):ΣTAT = 52 msΣWT = 26 ms
• Average Waiting Time (SRTF) = 26 / 4 = 6.5 ms  |  Avg TAT = 52 / 4 = 13.0 ms
▸ Part 2: Round Robin Scheduling (Time Quantum q = 3 ms) (3 Marks) Rule: Cyclic FIFO queue with max 3 ms CPU slice
Ready Queue Execution Trace:
t=0: [P1] → runs (0-3), rem 5 → Queue: P2, P3, P4, P1
t=3: [P2] → runs (3-6), rem 1 → Queue: P3, P4, P1, P2
t=6: [P3] → runs (6-9), rem 6 → Queue: P4, P1, P2, P3
t=9: [P4] → runs (9-12), rem 2 → Queue: P1, P2, P3, P4
t=12: [P1] → runs (12-15), rem 2 → Queue: P2, P3, P4, P1
t=15: [P2] → runs (15-16) COMPLETES at t=16 → Queue: P3, P4, P1
t=16: [P3] → runs (16-19), rem 3 → Queue: P4, P1, P3
t=19: [P4] → runs (19-21) COMPLETES at t=21 → Queue: P1, P3
t=21: [P1] → runs (21-23) COMPLETES at t=23 → Queue: P3
t=23: [P3] → runs (23-26) COMPLETES at t=26
Round Robin Gantt Chart (Time Quantum q = 3 ms) P1 P2 P3 P4 P1 P2 P3 P4 P1 P3 0 3 6 9 12 15 16 19 21 23 26
Fig 6.2: Round Robin (q = 3 ms) Gantt Chart (Average Waiting Time = 13.5 ms)
ProcessATBTCTTAT = CT − ATWT = TAT − BT
P1082323 − 0 = 2323 − 8 = 15 ms
P2141616 − 1 = 1515 − 4 = 11 ms
P3292626 − 2 = 2424 − 9 = 15 ms
P4352121 − 3 = 1818 − 5 = 13 ms
Sum (Σ):ΣTAT = 80 msΣWT = 54 ms
• Average Waiting Time (RR, q=3ms) = 54 / 4 = 13.5 ms  |  Avg TAT = 80 / 4 = 20.0 ms
Conclusion: SRTF yields a substantially lower Average Waiting Time (6.5 ms vs 13.5 ms). However, Round Robin ensures complete starvation avoidance and responsive timeslicing, making RR the standard choice in multi-user interactive OS kernels.
6 Marks
SRTF Trace & Calc: 3M
RR Trace & Calc: 3M
Total: 6M
Q.6 b)

Given memory partitions with free holes in order: 12 KB, 19 KB, 7 KB. Show how a process request of 6 KB is allocated using First Fit, Best Fit, and Worst Fit algorithms.

Given Parameters: Process Request = 6 KB • Free Holes in memory list: H1 = 12 KB, H2 = 19 KB, H3 = 7 KB
Initial Free Holes: H1: 12 KB H2: 19 KB H3: 7 KB 1. First Fit (H1): P: 6 KB 6 KB free 19 KB (intact) 7 KB (intact) Left: 6, 19, 7 KB 2. Best Fit (H3): 12 KB (intact) 19 KB (intact) P: 6 KB 1K Left: 12, 19, 1 KB 3. Worst Fit (H2): 12 KB (intact) P: 6 KB 13 KB free 7 KB (intact) Left: 12, 13, 7 KB
Fig 6.3: Memory Partition Allocation for 6 KB Process Request
1. First Fit Algorithm (2 Marks): Allocates the very first free hole from the beginning of memory that is large enough to satisfy the request (≥ 6 KB).
• Scans H1 (12 KB): Since 12 KB ≥ 6 KB → Allocated in H1.
• Leftover in H1: 12 KB − 6 KB = 6 KB.
• Resulting Free Hole List: 6 KB, 19 KB, 7 KB.
Assessment: Fastest search since allocation halts at the first valid hole.
2. Best Fit Algorithm (2 Marks): Searches the entire memory list and allocates the smallest hole that is large enough to minimize leftover fragment.
• Available candidates: 12 KB, 19 KB, 7 KB. Smallest suitable hole is H3 (7 KB).
• Leftover in H3: 7 KB − 6 KB = 1 KB.
• Resulting Free Hole List: 12 KB, 19 KB, 1 KB.
Assessment: Produces highest memory fit, but creates a tiny, virtually unusable 1 KB hole (severe external fragmentation).
3. Worst Fit Algorithm (2 Marks): Searches the entire memory list and allocates the largest available free hole so that the leftover remains large enough to house future tasks.
• Largest hole in memory is H2 (19 KB) → Allocated in H2.
• Leftover in H2: 19 KB − 6 KB = 13 KB.
• Resulting Free Hole List: 12 KB, 13 KB, 7 KB.
Assessment: Prevents tiny fragment generation; however, it breaks apart the system's largest continuous free block.
Allocation StrategySelected HoleAllocated SizeRemaining in that HoleResulting Memory Holes List
First Fit12 KB (H1)6 KB6 KB6 KB, 19 KB, 7 KB
Best Fit7 KB (H3)6 KB1 KB (tiny fragment)12 KB, 19 KB, 1 KB
Worst Fit19 KB (H2)6 KB13 KB (reusable)12 KB, 13 KB, 7 KB
6 Marks
First Fit: 2M
Best Fit: 2M
Worst Fit: 2M
Total: 6M
Q.6 c)

State the advantages of multithreading and differentiate between a Process and a Thread.

Thread Definition: A thread (lightweight process) is the smallest basic execution unit of CPU utilization. It comprises its own Thread ID, Program Counter (PC), Register set, and private Stack, while sharing the code section, data section, and OS resources (such as open files) with peer threads of the same parent process.
Advantages of Multithreading (Write any 6):
  1. Responsiveness: Allows an interactive application to remain responsive to user input even if a portion of the program is blocked or performing an extensive computation (e.g. browsing the web in one tab while downloading a file in another).
  2. Resource Sharing: Threads automatically share memory address space and open file descriptors of their enclosing process, eliminating the need for complex IPC (Inter-Process Communication).
  3. Economy (Low Overhead): Allocating memory and creating a thread is significantly cheaper in memory and CPU time than creating a heavyweight process (thread creation is ~30× faster; context switching is ~5× faster).
  4. Scalability on Multicore CPUs: Multiple threads of a single process can execute in true hardware parallelism across multiple distinct CPU cores. A single-threaded process is bounded to a single core.
  5. Higher CPU Utilization & Throughput: When one thread blocks waiting for disk or network I/O, other threads continue CPU execution, preventing processor idle time.
  6. Simplified Software Modularization: Complex background operations (such as auto-saving and spell-checking in a word processor) are partitioned naturally as dedicated worker threads.
Process vs Thread Comparison:
Parameter Process (Heavyweight) Thread (Lightweight)
1. Definition An independent program in execution with separate dedicated system resources. A lightweight unit of execution that runs within the context of a parent process.
2. Address Space & Memory Each process has its own isolated memory address space, stack, heap, and data section. Shares code, data, heap, and global variables with peer threads; only stack and registers are private.
3. Creation & Switch Time High overhead; requires complete page directory allocation and PCB duplication. Low overhead; very fast creation and lightweight context switching.
4. Inter-Task Communication Requires operating system IPC mechanisms (pipes, message queues, sockets, shared memory). Direct communication via shared process variables and memory pointers.
5. Fault Isolation Crash of one process does not affect other running processes (isolated). A memory fault or crash in one thread can terminate the entire host process.
6 Marks
Thread Def: 1M
Multithreading Pros (6 pts): 3M
Process vs Thread (4 pts): 2M
Total: 6M
★

LAST-MINUTE SCORING SHEET & FORMULAS

Essential Numerical Formulas (Mandatory in Exam):
  • Turnaround Time (TAT): TAT = CT − AT
  • Waiting Time (WT): WT = TAT − BT
  • Average Waiting Time: AWT = (Σ WT) / Total Processes
  • Page Fault Ratio: Total Faults / Total References
  • Hit Ratio: 1 − Fault Ratio = (Hits / References) × 100%
  • Paging Address: Physical = (Frame No × Page Size) + Offset
Verified Numerical Results of this Paper:
Question Topic Verified Final Answer
Q.4 (b) FCFS Numerical Avg WT = 3.33 ms
Q.5 (b) Page Faults (3 frames) Optimal = 9 faults (55%)
LRU = 12 faults (40%)
Q.6 (a) SRTF vs RR (q=3ms) SRTF WT = 6.5 ms
RR WT = 13.5 ms
Q.6 (b) 6 KB Memory Alloc First Fit: 12 KB (H1)
Best Fit: 7 KB (H3)
Worst Fit: 19 KB (H2)
MSBTE Topper Exam Strategy:

1. In Q.1, pick direct definitions and shell syntax questions — finish all 5 in under 15 minutes to secure 10 full marks.
2. In Q.2–Q.4, prioritize questions that demand a diagram or comparison table (e.g. Process states, CLI vs GUI, Paging vs Segmentation). Evaluators award full marks easily for neat sketches.
3. Solve numericals first: Q4b, Q5b, Q6a, and Q6b offer 100% objective step marks. Always draw labelled Gantt charts and clearly box/underline your final calculated value!

MSBTE NOTES AND INFO (ACADEMIA) • DIPLOMA IN ENGINEERING • K-SCHEME
Prepared by Board Certified Faculty • Official Portal: msbtenotes-info.netlify.app • Community WhatsApp: 7083236221
Subscribe to Our YouTube Channel!

Get the latest MSBTE exam paper walkthroughs, OS numericals, and live video lectures directly on YouTube.

Subscribe Now
MSBTE K-Scheme Hub

Related OSY (315319) & Semester 5 Resources

View All OSY Papers
15,000+ MSBTE Diploma Community

Need Model Answers for Other Subjects?

Join Maharashtra's largest diploma community on WhatsApp for instant question papers, verified answer sheets, timetable notifications, and exam alerts.

Frequently Asked Questions (MSBTE OSY 315319)

Where can I find the official MSBTE Winter 2026 model answer paper for Operating Systems (315319)? ▾

This interactive page contains the complete step-by-step solved MSBTE Winter 2026 model answer paper for Operating Systems (Course Code: 315319) for Computer Engineering, Information Technology, and AI/DS diploma programs under MSBTE K-Scheme.

Is this solved answer paper strictly mapped to the MSBTE K-Scheme marking scheme? ▾

Yes, every sub-question has its exact step-wise mark distribution specified in the right column according to MSBTE official evaluation guidelines, showing marks for definitions, diagrams, algorithms, and step calculations.

Can I download or print this OSY 315319 solved paper? ▾

This document is published in protected online reading mode to provide students with responsive tables, SVG architectures, and interactive formulas on any mobile, tablet, or PC browser. Offline printing and automated scraping are restricted.

What is the passing criteria for MSBTE OSY (315319) theory exam? ▾

Under the MSBTE K-Scheme curriculum, students must score a minimum of 28 marks out of 70 in the End Semester Examination (ESE Theory) and 40% aggregate including continuous internal assessments (PA).

Are the numerical solutions for CPU Scheduling and Page Replacement verified? ▾

Yes, all numerical calculations including Q.4(b) FCFS Average Waiting Time (3.33 ms), Q.5(b) Optimal (9 faults) vs LRU (12 faults), Q.6(a) SRTF (6.5 ms) vs Round Robin (13.5 ms), and Q.6(b) Memory Allocation partitions have been mathematically cross-verified with complete step-by-step Gantt charts and allocation tables.

Protected Educational Document
Printing, saving, and downloading are disabled. Please study online on MSBTE Notes & Info.