Question 1 | MCQ
State True or False
In RISC-V, during system calls, the mstatus register stores the current mode of operation of the processor.
In RISC-V, during system calls, the mstatus register stores the current mode of operation of the processor.
Solution
The ecall instruction in the xv6 operating system facilitates the transition of the CPU from user mode to supervisor mode.
Solution
What is a race condition in an operating system?
Solution
What is the primary purpose of the kvminit function in the xv6 operating system?
Solution
State True or False.
The init process, being the first process created by the system, can exit using the exit system call.
The init process, being the first process created by the system, can exit using the exit system call.
Solution
In the context of xv6 operating systems, what does the zombie state of a process refer to?
Solution
In the xv6 operating system, if a timer interrupt occurs while a process is executing, what will be the state transition of the process?
Solution
Solution
If the memory map for a device starts from the offset 0x30004000 and has a size of 512 bytes in a 32-bit addressing scheme, what will be the last address in the memory map?
Solution
Solution
Solution
What is the correct sequence of setting up first user process?
(i) Find an unused proc entry.
(ii) Create trapframe.
(iii) Create empty user process page table.
(iv) Create context for process.
(i) Find an unused proc entry.
(ii) Create trapframe.
(iii) Create empty user process page table.
(iv) Create context for process.
Solution
Consider a process P1 that forks P2, P2 forks P3, and P3 forks P4. P1 and P2 continue to execute while P3 terminates. Now, what is the parent process of P4?
Solution
Solution
Which of the following actions are performed by userinit?
Solution
Assume Process P2 and Process P4 are waiting for an input, Process P1 is running, and Process P3
was running before Process P1 and is now waiting for its turn to run. Select all the correct statements about the states of the processes.
was running before Process P1 and is now waiting for its turn to run. Select all the correct statements about the states of the processes.
Solution
Consider a system with a virtual memory space size of 8 GB and a single page table with 218 entries. What is the size of each page frame?
Solution
Consider a system with 64 MB of physical memory and a 32-bit virtual address space. Given a page size of 4 KB, what will be the number of frames?
Solution
Solution
Shape
Thickness [ / ]
3
All colors