← All B CompE Bachelor of Computer Engineering Flashcard Decks

Bachelor of Computer Engineering Operating System Flashcards

7 cards from real B CompE Bachelor of Computer Engineering practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Bachelor of Computer Engineering Operating System flashcards as text
  1. Which page replacement algorithm suffers from Belady's anomaly, where adding more frames can increase page faults?

    Answer: FIFO

    FIFO is the classic algorithm known to exhibit Belady's anomaly, where increasing physical frames can paradoxically raise the page fault count.

  2. In a Unix-like OS, which system call creates a new process that is an exact copy of the calling process?

    Answer: fork()

    fork() duplicates the calling process, giving the child an identical copy of the parent's address space, file descriptors, and registers.

  3. What is the term for the condition where a process holds one resource and waits for another held by a second process, which in turn waits for the first?

    Answer: Deadlock

    Deadlock occurs when two or more processes are each waiting for a resource held by another, forming a circular wait with no progress possible.

  4. Which scheduling metric measures the ratio of burst time to turnaround time, used in the HRRN algorithm?

    Answer: Response ratio

    HRRN selects the process with the highest response ratio = (waiting time + burst time) / burst time to prevent starvation.

  5. In virtual memory systems, what structure maps virtual page numbers to physical frame numbers?

    Answer: Page table

    The page table maintained per-process translates virtual page numbers into the corresponding physical frame numbers for address translation.

  6. Which inter-process communication mechanism allows a fixed-size buffer shared between producer and consumer processes, typically implemented in the kernel?

    Answer: Message queue

    Message queues store messages in a kernel-managed queue with defined capacity, decoupling producers and consumers without requiring shared memory mapping.

  7. What technique does an OS use to allow a program larger than physical RAM to run by keeping only active portions in memory?

    Answer: Demand paging

    Demand paging loads pages into RAM only when they are accessed, generating a page fault on first reference and retrieving them from disk.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy