Computer Science

Operating Systems: Functions and Memory Management

Nov 18, 20258 min read
Back to All Strategy Articles
Subject:Computer Science
Operating Systems: Functions and Memory Management
Official Exam Syllabus Alignment
Target Exam: Gujarat Police Wireless PSI (WPSI) Technical Paper 2 & GSSSB IT Cadre
Syllabus Module: Unit 3: Operating System Fundamentals, Process & Memory Management
Topic Weightage: 8–12 Marks
Preparation Focus: Process Scheduling & Deadlocks

The Operating System (OS) acts as an intermediary between the user and the computer hardware. For the exam, questions frequently test your knowledge of OS functions, specifically memory and process management.

1. Core Functions of an OS

  • Process Management: Scheduling processes, allocating CPU time (using algorithms like Round Robin or First Come First Serve), and handling deadlocks.
  • Memory Management: Keeping track of primary memory, allocating memory to processes when needed, and utilizing virtual memory.
  • File Management: Organizing and keeping track of files, directories, access control, and storage allocation.
  • Device Management: Communicating with hardware via device drivers.

2. Memory Management Techniques

Paging and Segmentation are two crucial concepts.

  • Paging: Divides physical memory into fixed-size blocks called frames, and logical memory into blocks of the same size called pages.
  • Segmentation: Divides memory into variable-sized segments based on logical divisions (like a main function, arrays, etc.).
Virtual Memory

Virtual memory allows execution of processes that are not completely in memory. It uses secondary storage (like a hard drive) to simulate additional RAM via a process called paging or swapping.

High-Yield Practice Questions & Worked Examples

Test your understanding with these exam-standard questions specifically calibrated for the syllabus pattern:

Exam Practice MCQ 1 Target Syllabus Drill

Q: Which of the following conditions is NOT one of the four necessary Coffman conditions for a Deadlock to occur?

  • (A) Mutual Exclusion
  • (B) Hold and Wait
  • (C) Preemption allowed by OS
  • (D) Circular Wait

✓ Correct Answer: (C) Preemption allowed by OS

Detailed Explanation: The four Coffman conditions are Mutual Exclusion, Hold and Wait, No Preemption (resources cannot be forcibly taken), and Circular Wait. If preemption is allowed, deadlock cannot occur.

Exam Practice MCQ 2 Target Syllabus Drill

Q: What phenomenon in Virtual Memory occurs when an operating system spends more time swapping pages in and out than executing processes?

  • (A) Fragmentation
  • (B) Thrashing
  • (C) Belady's Anomaly
  • (D) Cache Incoherence

✓ Correct Answer: (B) Thrashing

Detailed Explanation: Thrashing occurs when the total working sets of active processes exceed available physical RAM frames, causing the CPU utilization to plunge as the system thrashes the swap disk.

Sharpen Your Exam Readiness on Mcqprepzone

Mastering technical formulas and theoretical concepts is only step one. Solving timed mock tests under exact exam conditions improves speed, eliminates negative marking, and reveals your weak spots.

Frequently Asked Questions

What is Belady's Anomaly and which page replacement algorithm suffers from it?

Belady's Anomaly describes a phenomenon where increasing physical page frames leads to more page faults. It can occur in FIFO (First-In-First-Out) page replacement, but never in Stack algorithms like LRU or Optimal.

What is the difference between Preemptive and Non-Preemptive scheduling?

In preemptive scheduling (e.g. Round Robin, SRTF), the OS can interrupt a running process when a higher-priority task arrives. In non-preemptive scheduling (e.g. FCFS, SJF), a process holds the CPU until it voluntarily yields or terminates.

What is the primary role of the TLB (Translation Lookaside Buffer)?

A TLB is a fast hardware associative cache that stores recent virtual-to-physical page table mappings, avoiding extra RAM lookups on memory accesses.

Related Strategy & Syllabus Articles

Strengthen your exam preparation across adjacent subjects

All Posts

Never Miss an Exam Update

Join 50,000+ aspirants receiving our weekly Gujarat Police & GPSC strategy emails.