CS FundamentalsEasyWipro · Cognizant pattern
The data structure in which the OS keeps a process's program counter, register contents, state and open-file list is called the:
- A. Interrupt vector table
- B. Process Control Block (PCB)
- C. Page table
- D. Inode
Correct answer: B. Process Control Block (PCB)
The PCB (task control block) holds everything needed to resume a process after a context switch. An inode describes a file, not a process.
More Operating Systems questions
- Short jobs stuck waiting behind one long CPU-bound job is called the convoy effect. It is characteristic of which scheduling algorithm?
- A system spends most of its time swapping pages in and out and does very little useful work. This condition is called:
- Which page-replacement algorithm can show Belady's anomaly (more frames giving more page faults)?
- The disk-scheduling algorithm in which the head sweeps to one end of the disk servicing requests and then reverses direction, like a lift…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (times in ms). Under FCFS…
- Which of the following is NOT one of the four necessary (Coffman) conditions for deadlock?