Quiz Space

Operating Systems · End Term · 10 May 2026 · January 2026 term · Set 1-2

Question 5: Consider the following processes in an xv6-like operating…

Question 5

+3 marksOne or more correct options

Consider the following processes in an xv6-like operating system.
• Process P1 is waiting in the ready queue. • Process P2 is currently executing on the CPU. • Process P3 is blocked waiting for keyboard I/O. • Process P4 has terminated, but its parent has not yet called wait().
Select all correct statements.

Select all that apply.

  1. A

    P1 is in the RUNNABLE state.

  2. B

    P2 is in the RUNNING state.

  3. C

    P3 is in the SLEEPING state.

  4. D

    P4 is in the ZOMBIE state.

  5. E

    P3 is in the RUNNABLE state.

  6. F

    P4 is in the RUNNING state.

Show answer

Correct answers

  • A

    P1 is in the RUNNABLE state.

  • B

    P2 is in the RUNNING state.

  • C

    P3 is in the SLEEPING state.

  • D

    P4 is in the ZOMBIE state.

Question 5 of 20 in the IIT Madras BS Operating Systems (Operating Systems) End Term paper sat on 10 May 2026, in the January 2026 term (OS 10 May 26). It carries 3 marks.

More questions from this paper

  1. Q1Consider that the following commands are executed in a shell with root (/) as the current directory. What is the absolu…
  2. Q2Consider the following resource-allocation situation.\ Process P1 holds resource R1 and waits for R2. • Process P2 hold…
  3. Q3If the memory map for a device starts at address 0x50002000 and has a size of 4096 bytes, what is the last valid addres…
  4. Q4Consider the following program. Assume execlp succeeds. Which output order is guaranteed?
  5. Q6Consider the following solution for the critical section problem using a shared variable turn. Initial value: turn = 1 …
  6. Q7Assume that context switches can occur at any time during execution. The variable counter is shared between two concurr…
  7. Q8Choose all correct statements regarding compiling and linking multiple C source files using gcc.
  8. Q9A system has 128 MiB of physical memory and uses a page size of 4 KiB. How many page frames are present in RAM? Assume …
  9. Q10Consider the following processes, all arriving at time 0 and entering the ready queue in the order shown below. If the …
  10. Q11Consider the code segment (for xv6) given below. What are the base address and the end address of data_reg?
  11. Q12When a shell executes a command and then waits for it to finish before printing the next prompt, which sequence of syst…
  12. Q13Consider the following code snippet. Which of the following statements is correct?
  13. Q14In xv6 on RISC-V, which register contains the system call number when the user process traps into the kernel?
  14. Q15Given the hexadecimal representation of the first few bytes of different files, identify the executable ELF file.
  15. Q16In a 64-bit RISC-V system, the scause register stores trap information. What will be the value of scause for an Environ…
  16. Q17Consider the following processes scheduled using FCFS. What is the average waiting time?
  17. Q18A system uses a 32-bit virtual address space with a page size of 8 KiB and a single-level page table. How many entries …
  18. Q19Consider the following processes scheduled using non-preemptive SJF. What is the average response time?
  19. Q20Consider the below plots representing the order in which the requests are serviced by different disk scheduling algorit…