Quiz Space

Operating Systems · Quiz 1 · 25 Feb 2024 · January 2024 term

Question 5: Which instruction in the xv6 operating system facilitates…

Question 5

+2 marksOne correct option

Which instruction in the xv6 operating system facilitates the transition of the CPU from user mode to supervisor mode?

  1. A

    jmp

  2. B

    syscall

  3. C

    ecall

  4. D

    None of these

Show answer

Correct answer

  • C

    ecall

Question 5 of 22 in the IIT Madras BS Operating Systems (Operating Systems) Quiz 1 paper sat on 25 Feb 2024, in the January 2024 term (IIT M DEGREE AN2 EXAM QDB2 25 Feb 2024). It carries 2 marks.

More questions from this paper

  1. Q1In monolithic kernels, there is direct communication between modules in the kernel by procedure calls.
  2. Q2The _entry function in an operating system kernel like xv6 is called by each CPU core individually during the boot proc…
  3. Q3“Daemons are deliberate orphan processes that become detached from user sessions and operate in the background.”
  4. Q4If the memory map for the interrupt controller starts from the offset 0x20000000 and has a size of 256 bytes in a 32-bi…
  5. Q6Figure question
  6. Q7Figure question
  7. Q8What is the correct sequence of tasks that takes place as part of memory initializationof the xv6 kernel before turning…
  8. Q9Select the incorrect statements regarding the exit function.
  9. Q10Select all the incorrect statements regarding the wait function.
  10. Q11Figure question
  11. Q12Consider the size of the virtual memory space is 4 GB, and the number of entries in the page table is 2²¹. What is the …
  12. Q13Consider the following lines of code. Identify the TRUE statements. Figure 1: (i) Output is parent : 0 child : 1\ (ii) …
  13. Q14Find the correct match for the following functions.
  14. Q15Consider a system with 32 MB of physical memory and a 32-bit virtual address space. Given a page size of 2 KB, what wil…
  15. Q16Assume process A is waiting for an input, process B is running, and process C was running before process B and is now w…
  16. Q17Select all the correct statements about the first process in xv6 (sbin/init).
  17. Q18Which of the following can be possible output of the following lines of code? Figure 2:
  18. Q19Consider the code segment (for xv6) given below. In the code above baud_reg, rx_reg, and status_reg are the pointers to…
  19. Q20Consider the code segment (for xv6) given below. In the code above baud_reg, rx_reg, and status_reg are the pointers to…
  20. Q21Consider the following code for kvminit function in vm. c. Based on the above data, answer the given subquestions.
  21. Q22Consider the following code for kvminit function in vm. c. Based on the above data, answer the given subquestions. What…