CS FundamentalsHardGATE CS (PYQ pattern)
Which of the following statements about system calls and interrupts are correct? I. A system call enters the kernel through a trap instruction and runs in kernel mode. II. A page fault is an asynchronous interrupt raised by the disk controller. III. A periodic timer interrupt lets the OS preempt a running process. IV. A process that runs as the root user may execute privileged CPU instructions directly in user mode.
- A. I, II and III only
- B. II and IV only
- C. I and III only
- D. III and IV only
Correct answer: C. I and III only
II is wrong: a page fault is a synchronous exception caused by the faulting instruction itself, not a device interrupt. IV is wrong: root is a software notion; the CPU mode bit still blocks privileged instructions in user mode.
More Operating Systems questions
- Which of the following statements about disk scheduling are correct? I. SSTF can starve requests far from the head. II. SCAN bounds the…
- A process maps a region starting at virtual address 0x40000000 whose size is 4 GB + 5 MB + 12 KB. The OS uses 1 GB, 2 MB and 4 KB pages…
- A 32-bit machine has 512 MB of RAM, of which the resident kernel permanently uses 128 MB, and a 1 GB swap partition. The top 1 GB of every…
- On a single-CPU system processes arrive at 3 per second in steady state, on average 6 processes sit in the ready queue (not counting the…
- Stride scheduling with stride = 6000 / tickets: A has 100 tickets, B 200 and C 300. All passes start at 0; each quantum the process with…
- A CFS-like scheduler picks the runnable task with the smallest virtual runtime and runs it for a 4 ms slice, then adds 4 x 1024 / weight…