Computer Operating System Notes for DSSSB TGT Computer Science | PYQs & 100 MCQs

DSSSB TGT COMPUTER SCIENCE NOTES

Computer Operating System Complete Notes for DSSSB TGT Computer Science

Complete Operating System study material with detailed explanations, real-life examples, numerical problems, CPU scheduling, process management, synchronization, deadlocks, memory management, paging, virtual memory, file management, disk scheduling and Linux basics.

💻 DSSSB TGT COMPUTER SCIENCE

OPERATING SYSTEM

Complete Detailed Notes + Examples + Exam Preparation

⚙️ OS Organization
🔄 Process Management
⏱️ CPU Scheduling
🔐 Synchronization
☠️ Deadlock
🧠 Memory Management
📂 File Management
🐧 Linux
DSSSB EXAM FOCUS

The DSSSB TGT Computer Science Operating Systems syllabus includes Introduction, Operating System Organization, Device Management, Process Management, Scheduling, Synchronization Principles, Deadlocks, Memory Management and File Management.

This article explains these areas using definitions, examples, tables, formulas and exam-oriented points.

💻 1. Introduction to Operating System

What is an Operating System?

An Operating System (OS) is system software that acts as an intermediary between computer hardware and the users or application programs.

It manages computer resources such as the CPU, main memory, storage devices, input/output devices and files.

🌍 Real-Life Example

Imagine a school computer laboratory containing 50 computers. Students want to run browsers, word processors and programming software while the computer also needs to manage memory, keyboard, mouse, printer and storage.

The user does not directly control every transistor or hardware register. The operating system provides a controlled environment through which these resources are used.

Examples of operating systems include Windows, Linux, macOS, Android and other specialized operating systems.

⚙️ Resource Manager

The OS allocates CPU time, memory, storage and I/O resources.

🖥️ Interface

The OS provides interfaces through which users and programs interact with the computer.

🛡️ Control

The OS controls access to hardware and system resources.

⚙️ 2. Functions of Operating System

An operating system performs several important functions. The most important functions for examination preparation are:

  • Process management
  • Memory management
  • File management
  • Device management
  • Storage management
  • Security and protection
  • Networking
  • Error detection
  • Resource allocation

🧠 Memory Management

Tracks memory usage and allocates/deallocates memory to processes.

🔄 Process Management

Creates, schedules and terminates processes.

📂 File Management

Manages files, directories, permissions and storage organization.

🔌 Device Management

Coordinates communication between programs and I/O devices.

🔐 Security

Protects resources from unauthorized access.

🌐 Networking

Supports communication between systems and network resources.

🎯 Exam Point

Process management, memory management and security are all functions performed by an operating system.

🛠️ 3. Operating System Services

Operating systems provide services that make program execution and user interaction easier.

Service Explanation Example
Program Execution Loads and executes programs. Running a browser.
I/O Operations Provides controlled access to I/O devices. Reading keyboard input.
File Manipulation Creates, reads, writes and deletes files. Saving a document.
Communication Allows processes to exchange information. Inter-process communication.
Error Detection Detects hardware/software errors. Memory or disk error detection.
Resource Allocation Allocates resources to programs. CPU scheduling.
Protection Controls access to resources. File permissions.

🏗️ 4. Operating System Organization

Operating-system organization describes how different OS components are arranged and how they communicate with hardware, the kernel and applications.

Process Manager

Handles processes, scheduling and synchronization.

Memory Manager

Manages allocation, paging and virtual memory.

File Manager

Manages files, directories and storage structures.

I/O Manager

Controls input/output operations.

Security Manager

Controls protection and access.

Network Manager

Supports networking and communication.

🖥️ 5. Types of Operating Systems

Type Meaning Example/Use
Batch OS Jobs are collected and processed in batches. Large offline processing jobs.
Multiprogramming OS Several programs are kept in memory so CPU utilization can improve. Multi-program environments.
Multitasking OS Multiple tasks share processor time. Desktop operating systems.
Time-Sharing OS CPU time is divided among users/processes for interactive use. Interactive multi-user systems.
Multiprocessing OS Uses multiple processors/cores. Modern multicore computers.
Real-Time OS Designed to respond within specified timing constraints. Control systems.
Distributed OS Coordinates resources across multiple connected computers. Distributed environments.
🎯 Example: Real-Time Operating System

Suppose an industrial control system must respond to a sensor within a specified time limit. Missing that timing requirement could cause the system to fail.

A real-time operating system is designed for such timing-sensitive applications.

🧩 6. Kernel

Kernel = Core of the Operating System

The kernel is the central component of an operating system. It manages important system resources and provides controlled interaction between applications and hardware.

CPU

Kernel controls process scheduling and CPU allocation.

Memory

Kernel manages memory allocation and virtual memory.

I/O

Kernel coordinates input/output operations.

Exam Tip: Remember the kernel as the core or central part of the operating system responsible for low-level resource management.

📞 7. System Calls

What is a System Call?

A system call is a mechanism through which a user-level program requests a service from the operating system.

💡 Simple Example

Suppose a program wants to read data from a file. The program cannot simply bypass the operating system and directly manipulate the storage device.

It makes an appropriate system call requesting the OS to perform the operation.

Category Examples of Operations
Process Control Create, terminate, execute processes
File Management Open, read, write, close files
Device Management Request/release devices
Information Maintenance Get/set system information
Communication Send/receive information

🔌 8. Device Management

Device management is responsible for controlling and coordinating input/output devices such as keyboards, printers, disks, displays and network devices.

Important Responsibilities

  • Keeping track of devices.
  • Allocating devices to processes.
  • Releasing devices after use.
  • Managing I/O operations.
  • Using device drivers.
  • Handling interrupts.
🖨️ Example: Printer

Suppose five programs want to print documents at the same time. The operating system coordinates their requests and can maintain a print queue.

This prevents all programs from attempting uncontrolled access to the printer simultaneously.

🔄 9. Process Management

Process = Program in Execution

A program stored on disk is passive. When that program begins executing, it becomes a process.

💡 Example

Suppose calculator.exe is stored on your computer. The file itself is a program.

When you open the calculator, the operating system loads the required information into memory and starts execution. The executing instance is a process.

🔄 Process States

NEW

The process is being created.

READY

The process is ready and waiting for CPU allocation.

RUNNING

Instructions of the process are currently executing.

WAITING

The process is waiting for an event or I/O operation.

TERMINATED

The process has finished execution.

🎯 Important

A process may move from Ready → Running when the scheduler selects it.

A running process may move to Waiting when it needs to wait for an I/O event.

📋 10. Process Control Block – PCB

PCB = Process Control Block

The PCB is a data structure maintained by the operating system for each process. It contains information required to manage and resume the process.

PCB Information Purpose
Process ID Uniquely identifies a process.
Process State Stores current process state.
Program Counter Contains address of next instruction to execute.
CPU Registers Stores processor state associated with the process.
Scheduling Information Contains priority and scheduling-related information.
Memory Information Contains information related to memory allocated to process.
I/O Information Stores I/O-related information.

🧵 11. Threads

Thread = Basic Unit of CPU Execution

A thread is a lightweight unit of execution within a process. Multiple threads belonging to the same process generally share the process's address space and resources.

🌐 Real-Life Example: Web Browser

A browser can perform multiple activities such as rendering a page, handling user input and performing background work.

Using multiple threads can allow different activities to execute concurrently within the same process.

Process Thread
Generally heavier. Generally lighter.
Own process address space. Threads within a process share its address space.
Process creation can be expensive. Thread creation is generally less expensive.

🔄 12. Context Switching

A context switch occurs when the CPU changes from executing one process/thread to another.

The operating system must preserve the state of the currently running process and restore the state of the next process.

1
Save the current process state.
2
Store required information in the PCB.
3
Select another process.
4
Load the new process context.
5
Resume execution.

⏱️ 13. CPU Scheduling

What is CPU Scheduling?

CPU scheduling is the process of selecting a process from the ready queue and allocating the CPU to it.

Important Scheduling Algorithms

FCFS

First Come First Served.

SJF

Shortest Job First.

SRTF

Shortest Remaining Time First.

Priority

Selects according to priority.

Round Robin

Uses a fixed time quantum.

📐 Important Formulas

Turnaround Time = Completion Time − Arrival Time
Waiting Time = Turnaround Time − Burst Time
Response Time = First CPU Start Time − Arrival Time

🚶 14. FCFS Scheduling – Solved Example

FCFS = First Come First Served

The process that arrives first is normally served first. FCFS is a non-preemptive scheduling algorithm.

🧮 Numerical Example

Consider:

Process Arrival Time Burst Time
P1 0 5
P2 1 3
P3 2 2

Since FCFS follows arrival order:

P1 → P2 → P3

Gantt chart:

0 ---- 5 ---- 8 ---- 10 | P1 | P2 | P3 |

Completion times:

  • P1 = 5
  • P2 = 8
  • P3 = 10

Turnaround time:

P1 = 5 − 0 = 5 P2 = 8 − 1 = 7 P3 = 10 − 2 = 8

Waiting time:

P1 = 5 − 5 = 0 P2 = 7 − 3 = 4 P3 = 8 − 2 = 6

⚠️ Exam Trap

FCFS can suffer from the convoy effect, where short processes wait behind a long process.

⚡ 15. SJF Scheduling – Solved Example

SJF = Shortest Job First

SJF selects the process having the smallest CPU burst time among the eligible processes.

The basic non-preemptive version does not interrupt a running process.

🧮 Example

Suppose all processes arrive at time 0:

Process Burst Time
P1 6
P2 2
P3 4

Shortest burst is P2, followed by P3 and then P1.

Order = P2 → P3 → P1
0 -- 2 ------ 6 ------------ 12 | P2 | P3 | P1 |

Completion times:

  • P2 = 2
  • P3 = 6
  • P1 = 12

Waiting times:

P2 = 0 P3 = 2 P1 = 6

Average waiting time:

(0 + 2 + 6) / 3 = 8 / 3 ≈ 2.67 time units

⚡ 16. SRTF Scheduling – Solved Example

SRTF = Shortest Remaining Time First

SRTF is a preemptive scheduling algorithm. The process with the smallest remaining CPU burst time is selected.

🧮 Concept Example

Suppose P1 starts executing. If a new process P2 arrives whose remaining burst time is less than P1's remaining time, P1 may be preempted and P2 can execute.

This is the main distinction between SJF and SRTF:

SJF → Non-preemptive version SRTF → Preemptive version

🏆 17. Priority Scheduling

In priority scheduling, each process is assigned a priority and the scheduler selects according to that priority.

The exact meaning of a smaller or larger numerical value depends on the convention specified in the question.

🧮 Example
Process Priority Burst
P1 3 5
P2 1 2
P3 2 4

If 1 means highest priority, the order is:

P2 → P3 → P1

⚠️ Starvation

Low-priority processes may wait for a long time if higher-priority processes continually enter the ready queue.

Aging can gradually increase the priority of waiting processes and help reduce starvation.

🔄 18. Round Robin Scheduling

Round Robin = Time Quantum Based Scheduling

Round Robin gives each ready process a fixed amount of CPU time called the time quantum.

🧮 Example

Suppose three processes have burst times:

P1 = 5 P2 = 3 P3 = 4 Time Quantum = 2

The CPU may execute:

P1 → P2 → P3 → P1 → P2 → P3 → P1

A process that does not finish after its quantum goes to the back of the ready queue.

Exam Tip: Round Robin is strongly associated with interactive and time-sharing environments.

🔐 19. Process Synchronization

What is Synchronization?

Process synchronization coordinates processes or threads when they access shared data or shared resources.

🚨 Race Condition

A race condition can occur when multiple processes/threads access shared data concurrently and the final result depends on the timing/order of execution.

🚧 Critical Section

A critical section is the part of a program in which shared data or a shared resource is accessed.

Mutual Exclusion

Only the allowed process/thread should enter the critical section at a time.

Progress

Processes should not be unnecessarily prevented from entering their critical section.

Bounded Waiting

A process should not wait indefinitely.

🚦 20. Semaphore

Semaphore = Synchronization Primitive

A semaphore is used to coordinate access to shared resources and to synchronize processes or threads.

Binary Semaphore

Commonly represents two states and can be used for mutual exclusion.

Counting Semaphore

Can represent multiple available instances of a resource.

🅿️ Real-Life Example: Parking Spaces

Suppose a parking area has 5 available spaces. A counting semaphore could conceptually represent the number of available spaces.

When a vehicle occupies a space, the available count decreases. When a vehicle leaves, the available count increases.

☠️ 21. Deadlock

What is Deadlock?

Deadlock is a situation in which a set of processes becomes permanently blocked because each process is waiting for a resource held by another process in the set.

🔥 Four Necessary Conditions

1. Mutual Exclusion

At least one resource is non-shareable.

2. Hold and Wait

A process holds resources while waiting for additional resources.

3. No Preemption

Resources cannot simply be forcibly removed from a process.

4. Circular Wait

A circular chain of processes waits for resources.

🚗 Real-Life Example

Imagine:

  • Car A has resource R1 and waits for R2.
  • Car B has resource R2 and waits for R1.

Neither can proceed because each is waiting for the other. This illustrates the basic idea of circular waiting.

🏦 22. Banker's Algorithm

Banker's Algorithm = Deadlock Avoidance

Banker's Algorithm is a deadlock-avoidance algorithm. It checks whether allocating resources will leave the system in a safe state.

🧮 Simple Concept Example

Suppose a system has a limited number of printers, tape drives and memory resources. Before granting a request, the system can conceptually check whether the resulting state allows all processes to eventually finish.

If a safe sequence exists, the state can be considered safe under the algorithm's assumptions.

🎯 Important Terms

  • Available: Currently available resources.
  • Maximum: Maximum resource requirement.
  • Allocation: Resources currently allocated.
  • Need: Remaining resource requirement.
Need = Maximum − Allocation

🧠 23. Memory Management

Memory Management

Memory management is the operating-system activity concerned with tracking, allocating, protecting and releasing memory used by processes.

Allocation

Assign memory to processes.

Deallocation

Release memory after it is no longer required.

Protection

Prevent unauthorized memory access.

🏠 Real-Life Analogy

Think of RAM as a large building containing rooms. Different processes need rooms of different sizes. The memory manager decides where processes can be placed and which areas are free.

🧩 24. Fragmentation

Internal Fragmentation

Unused memory exists inside an allocated block because the block is larger than the requested allocation.

External Fragmentation

Free memory exists, but it is divided into separated holes.

💡 Example

Suppose memory allocation gives a process a 100 KB block but the process needs only 92 KB. The unused 8 KB inside the allocated block represents internal fragmentation.

📄 25. Paging

Paging = Pages + Frames

Paging divides logical memory into fixed-size blocks called pages. Physical memory is divided into fixed-size blocks called frames.

📄 Page

Fixed-size block of logical/virtual memory.

🧱 Frame

Fixed-size block of physical memory.

📋 Page Table

Maps page numbers to frame numbers.

🧮 Paging Numerical Example

Suppose:

  • Page size = 1 KB = 1024 bytes
  • Logical address = 2500

Page number:

2500 ÷ 1024 = 2 remainder 452

Therefore:

Page Number = 2 Offset = 452

Suppose the page table says:

Page 2 → Frame 7

Physical address:

Physical Address = Frame × Frame Size + Offset = 7 × 1024 + 452 = 7168 + 452 = 7620

Answer: Physical address = 7620

🎯 Exam Shortcut

For a page size of 2n bytes, the lower n bits of a logical address represent the offset.

🔢 26. Logical to Physical Address Translation

A logical address generated by the CPU can be divided into:

Logical Address = Page Number + Offset

The page number is used to locate the corresponding frame using the page table.

Physical Address = Frame Number × Page Size + Offset
🧮 Example

Page size = 1024 bytes. Logical address = 4097.

4097 ÷ 1024 = 4 remainder 1

Therefore:

Page = 4 Offset = 1

If Page 4 maps to Frame 9:

Physical Address = 9 × 1024 + 1 = 9217

📚 27. Segmentation

Segmentation

Segmentation divides a program into logical segments such as code, data, stack and other logical units. Unlike paging, segments can have different sizes.

💡 Example

A program may conceptually contain:

  • Code segment
  • Data segment
  • Stack segment
  • Heap segment

The segmentation mechanism can represent these logical units separately.

☁️ 28. Virtual Memory

Virtual Memory

Virtual memory allows a process to execute even when its complete address space is not simultaneously loaded into physical memory.

💡 Example

Suppose a process logically requires 8 GB of address space but only part of it is actively needed at a particular moment. Virtual-memory techniques can allow only the required portions to be brought into physical memory as needed.

🚨 Page Fault

A page fault occurs when a process references a page that is not currently present in physical memory.

The operating system must handle the fault and bring the required page into memory if possible.

🔄 29. Page Replacement Algorithms

FIFO

Replace the page that entered memory first.

LRU

Replace the page that has not been used for the longest time.

Optimal

Replace the page whose next use is farthest in the future.

🧮 FIFO Example

Consider a simplified reference sequence:

1, 2, 3, 1, 4

With three frames, FIFO initially loads:

[1] [2] [3]

When page 4 needs to be loaded and the frames are full, FIFO removes the page that entered earliest, namely page 1.

[4] [2] [3]

⚠️ Belady's Anomaly

Belady's anomaly is classically associated with FIFO page replacement. Increasing the number of page frames can, for certain reference strings, increase the number of page faults.

📂 30. File Management

File Management

File management involves organizing files and directories, maintaining file attributes and controlling operations such as creation, reading, writing and deletion.

File Attribute Meaning
Name Human-readable file name.
Identifier Unique internal identifier.
Type Indicates the kind/type of file.
Location Information about where the file is stored.
Size File size.
Protection Access-control information.
Date and Time Creation/modification/access information where supported.

📌 Common File Operations

Create Open Read Write Seek Close Delete

📦 31. File Allocation Methods

Contiguous Allocation

File blocks are stored in consecutive disk locations.

Linked Allocation

File blocks can be located at different positions and connected through pointers.

Indexed Allocation

An index block stores pointers to the file's data blocks.

💡 Example

Suppose a file requires five blocks.

Contiguous allocation might store:

100 → 101 → 102 → 103 → 104

The blocks are consecutive.

Linked allocation could instead use blocks at different locations, with each block pointing to the next block.

💿 32. Disk Scheduling

Disk scheduling determines the order in which pending disk requests are serviced.

FCFS SSTF SCAN C-SCAN LOOK C-LOOK

FCFS

Services requests in arrival order.

SSTF

Chooses the request with the shortest seek distance from current head position.

SCAN

Moves in one direction servicing requests, then reverses direction.

C-SCAN

Services in one direction and returns to the beginning without servicing requests during the return.

🧮 SSTF Example

Suppose the current disk head is at cylinder 50 and pending requests include:

40, 45, 70, 90

Distances from 50:

|50 − 40| = 10 |50 − 45| = 5 |70 − 50| = 20 |90 − 50| = 40

The closest request is 45, so SSTF selects 45 first.

🐧 33. Linux Operating System

Linux

Linux is an open-source Unix-like operating-system kernel used as the basis for many Linux distributions.

Directory Common Purpose
/ Root of the filesystem hierarchy.
/home Home directories of ordinary users.
/root Home directory of the root user.
/etc System-wide configuration files.
/dev Device files.
/tmp Temporary files.
/var Variable data such as logs and spool data.
/proc Virtual filesystem exposing process/kernel information.

⌨️ 34. Important Linux Commands

Command Purpose Example
pwd Shows current working directory. pwd
ls Lists directory contents. ls
cd Changes directory. cd Documents
mkdir Creates directory. mkdir test
rmdir Removes an empty directory. rmdir test
cp Copies files/directories. cp a.txt b.txt
mv Moves or renames files/directories. mv old.txt new.txt
rm Removes files/directories according to options and permissions. rm file.txt
cat Displays/concatenates file contents. cat file.txt
grep Searches text using patterns. grep word file.txt
chmod Changes file permissions. chmod 755 file
ps Displays process information. ps

🔥 DSSSB TGT High-Priority Operating System Topics

⭐⭐⭐⭐⭐

CPU Scheduling and numerical problems

⭐⭐⭐⭐⭐

Deadlock and Banker's Algorithm

⭐⭐⭐⭐⭐

Paging, virtual memory and page replacement

⭐⭐⭐⭐

Process management and PCB

⭐⭐⭐⭐

Synchronization and semaphore

⭐⭐⭐⭐

File and disk management

⚡ 35. Operating System Quick Revision

Basic Concepts

OS: System software that manages hardware resources and provides services to programs.

Kernel: Core component of the OS.

Process: Program in execution.

PCB: Process Control Block.

CPU Scheduling

FCFS → First Come First Served

SJF → Shortest Job First

SRTF → Shortest Remaining Time First

RR → Round Robin with time quantum

Deadlock

Mutual Exclusion + Hold and Wait + No Preemption + Circular Wait

Memory

Paging → Pages + Frames + Page Table

Virtual Memory → Allows execution without requiring the complete address space in physical memory simultaneously.

Page Replacement

FIFO + LRU + Optimal

File Management

Contiguous + Linked + Indexed allocation

📝 Official Previous-Year Question Note

IMPORTANT

Do not confuse a newly created practice question with an actual previous-year DSSSB question.

The official DSSSB TGT Computer Science previous-year material contains Operating System questions. For example, an official 2021 TGT Computer Science paper includes a question asking which items among process management, memory management and security are functions of an operating system; the correct combination is all three.

For your blog, always label questions as: Actual PYQ + Year only after verifying them against the official DSSSB paper.

🧠 36. DSSSB TGT Operating System Practice Quiz

The following questions are provided as exam-oriented practice questions. They are not labelled as previous-year questions unless explicitly identified as such.

Q1

Which software manages computer hardware resources and provides services to application programs?

  • A. Compiler
  • B. Operating System
  • C. Text Editor
  • D. Database
Answer: B — Operating System
The operating system manages hardware resources and provides services to application programs.
Q2

A program in execution is called:

  • A. Thread only
  • B. Process
  • C. File
  • D. Compiler
Answer: B — Process
A process is an executing instance of a program.
Q3

Which data structure contains information required to manage a process?

  • A. FAT
  • B. PCB
  • C. TLB
  • D. Cache
Answer: B — PCB
PCB stands for Process Control Block.
Q4

Which CPU scheduling algorithm uses a time quantum?

  • A. FCFS
  • B. SJF
  • C. Round Robin
  • D. FIFO page replacement
Answer: C — Round Robin
Q5

Which scheduling algorithm is normally associated with the shortest CPU burst?

  • A. SJF
  • B. FCFS
  • C. Round Robin
  • D. SCAN
Answer: A — SJF
Q6

Which algorithm is the preemptive counterpart of SJF?

  • A. FCFS
  • B. SRTF
  • C. Round Robin
  • D. SCAN
Answer: B — SRTF
Q7

Which scheduling problem occurs when low-priority processes may wait indefinitely?

  • A. Deadlock only
  • B. Starvation
  • C. Paging
  • D. Thrashing
Answer: B — Starvation
Q8

Which technique can help reduce starvation in priority scheduling?

  • A. Aging
  • B. Paging
  • C. Spooling
  • D. Swapping only
Answer: A — Aging
Q9

Which of the following is a necessary condition for deadlock?

  • A. Mutual exclusion
  • B. Compilation
  • C. Paging
  • D. Caching
Answer: A — Mutual Exclusion
Q10

Which algorithm is associated with deadlock avoidance?

  • A. Banker's Algorithm
  • B. FCFS
  • C. FIFO page replacement
  • D. SCAN
Answer: A — Banker's Algorithm
Q11

In paging, physical memory is divided into:

  • A. Pages
  • B. Frames
  • C. Segments
  • D. Files
Answer: B — Frames
Q12

Logical memory is divided into:

  • A. Frames
  • B. Pages
  • C. Tracks
  • D. Sectors
Answer: B — Pages
Q13

Which structure maps pages to frames?

  • A. Page table
  • B. PCB
  • C. File table
  • D. Ready queue
Answer: A — Page Table
Q14

A page fault occurs when:

  • A. CPU fails
  • B. Required page is not in physical memory
  • C. Disk is formatted
  • D. File is deleted
Answer: B — Required page is not in physical memory
Q15

Which page replacement algorithm can exhibit Belady's anomaly?

  • A. FIFO
  • B. LRU
  • C. Optimal
  • D. None
Answer: A — FIFO
Q16

Which page replacement algorithm uses the page that has not been used for the longest time?

  • A. FIFO
  • B. LRU
  • C. FCFS
  • D. SSTF
Answer: B — LRU
Q17

Which algorithm theoretically gives the minimum possible number of page faults for a known future reference string?

  • A. FIFO
  • B. LRU
  • C. Optimal
  • D. FCFS
Answer: C — Optimal
Q18

Which of the following is a synchronization primitive?

  • A. Semaphore
  • B. Compiler
  • C. Linker
  • D. Loader only
Answer: A — Semaphore
Q19

Which of the following is a necessary condition for deadlock?

  • A. Circular wait
  • B. Compilation
  • C. Fragmentation
  • D. Paging
Answer: A — Circular Wait
Q20

Which file allocation method stores file blocks in consecutive disk locations?

  • A. Linked
  • B. Indexed
  • C. Contiguous
  • D. Random only
Answer: C — Contiguous Allocation
Q21

Which disk scheduling algorithm chooses the request closest to the current head position?

  • A. SSTF
  • B. FCFS
  • C. SCAN
  • D. C-SCAN
Answer: A — SSTF
Q22

Which disk scheduling algorithm is commonly described as an elevator algorithm?

  • A. FCFS
  • B. SCAN
  • C. SSTF
  • D. FIFO
Answer: B — SCAN
Q23

What is the purpose of a device driver?

  • A. Translate OS/device operations into device-specific control
  • B. Replace RAM
  • C. Create CPU
  • D. Compile all programs
Answer: A — Device drivers provide software interfaces for devices.
Q24

Which directory commonly contains system-wide configuration files in Linux?

  • A. /home
  • B. /etc
  • C. /tmp
  • D. /dev
Answer: B — /etc
Q25

Which command is commonly used to display the current working directory in Linux?

  • A. cd
  • B. pwd
  • C. ls
  • D. mkdir
Answer: B — pwd
Q26

Which command lists files/directories?

  • A. ls
  • B. pwd
  • C. cd
  • D. mv
Answer: A — ls
Q27

Which command is used to change the current directory?

  • A. cd
  • B. pwd
  • C. cat
  • D. ps
Answer: A — cd
Q28

Which data structure is associated with a process?

  • A. PCB
  • B. Page frame
  • C. Sector
  • D. Directory
Answer: A — PCB
Q29

Which scheduling algorithm is non-preemptive in its basic form?

  • A. FCFS
  • B. SRTF
  • C. Preemptive Priority
  • D. Round Robin
Answer: A — FCFS
Q30

Which formula correctly represents waiting time?

  • A. Waiting Time = Turnaround Time − Burst Time
  • B. Waiting Time = Arrival Time − Completion Time
  • C. Waiting Time = Burst Time − Turnaround Time
  • D. Waiting Time = Completion Time + Arrival Time
Answer: A — Waiting Time = Turnaround Time − Burst Time

✅ Final DSSSB TGT Operating System Checklist

✓ OS Introduction ✓ OS Organization ✓ Device Management ✓ Process Management ✓ PCB ✓ Threads ✓ Context Switching ✓ CPU Scheduling ✓ FCFS ✓ SJF ✓ SRTF ✓ Priority ✓ Round Robin ✓ Synchronization ✓ Semaphore ✓ Deadlock ✓ Banker's Algorithm ✓ Memory Management ✓ Fragmentation ✓ Paging ✓ Page Table ✓ Segmentation ✓ Virtual Memory ✓ Page Fault ✓ FIFO ✓ LRU ✓ Optimal ✓ File Management ✓ File Allocation ✓ Disk Scheduling ✓ Linux ✓ Linux Commands

❓ Frequently Asked Questions

What is an Operating System?
An operating system is system software that manages hardware resources and provides services to application programs.
What is a process?
A process is a program in execution.
What is PCB?
PCB stands for Process Control Block and contains information needed by the operating system to manage a process.
What are the four necessary conditions for deadlock?
Mutual Exclusion, Hold and Wait, No Preemption and Circular Wait.
What is paging?
Paging divides logical memory into fixed-size pages and physical memory into fixed-size frames.
What is a page fault?
A page fault occurs when a referenced page is not currently present in physical memory.
What is Round Robin scheduling?
Round Robin is a preemptive scheduling algorithm that gives processes CPU time in fixed time quanta.
What is Banker's Algorithm?
Banker's Algorithm is a deadlock-avoidance algorithm that checks whether resource allocation can leave the system in a safe state.
What is the difference between page and frame?
A page is a fixed-size block of logical/virtual memory, while a frame is a fixed-size block of physical memory.
Which Linux command displays the current working directory?
The pwd command.

🚀 Master Operating System for DSSSB TGT Computer Science

Read the theory first, understand the worked examples, memorize important one-liners and then solve numerical scheduling, paging, deadlock and disk-scheduling problems.

Concept → Example → Formula → Practice → Revision

📌 Educational Disclaimer

This article is intended for educational and competitive examination preparation. Always verify the latest official DSSSB notification, syllabus and examination instructions before the examination.

Questions created specifically for practice in this article should not be represented as official previous-year questions.

Post a Comment

Please do note create link post in comment section

Previous Post Next Post