Professional Documents
Culture Documents
A hardware mechanism is needed for translating virtual addresses to physical main memory
addresses at the time of execution of the
instruction that contains the reference. - ANS True
A physical address is the location of a word relative to the beginning of the program and the
processor translates that into a virtual address. - ANS False
All segments of all processes must be of the same length. - ANS False
It is impossible to have both paging and segmentation in the same system. - ANS False
What is the difference between a virtual address and a physical address? - ANS VA is an
address in a logical space (an address in an illusion) while the physical address is an address in
the actual physical memory.
Give an example of a preemptive scheduling algorithm. - ANS STCF/SRTF and Round Robin
A memory system that uses paging is vulnerable to external fragmentation. Why or why not? -
ANS False. There is no external fragmentation in a paging system because there is no space
left outside a page/frame.
Of the following items, which are stored in the process control block?
i. Page table pointer
ii. Page table
iii. Stack pointer
iv. Segment table
v. List of processes in the ready state
vi. The content of CPU registers
vii. Program counter - ANS i. Page table pointer
iii. Stack pointer
vi. The content of CPU registers
vii. Program counter
In a typical modern OS, which of the following statements are true about user applications and
the kernel?
1. The kernel runs at privileged level.
2. Applications run at privileged level.
3. Applications may directly invoke any function calls in the kernel.
4. The kernel frequently relinquishes control and must depend on the user application to allow it
to regain control. - ANS 1. The kernel runs at privileged level.
Which of the following instructions should be protected, i.e., can execute only when the
processor is running in kernel mode?
1. MOV cr3, src; (move the value in src to control register CR3. CR3 contains the physical
address of the base of the page table).
2. TR AP; (jump to kernel's syscall dispatcher with kernel privilege)
3. ADD; (add numbers)
4. JMP; (jump to a different instruction)
5. INB (contact I/O device). - ANS 1. MOV cr3, src; (move the value in src to control register
CR3. CR3 contains the physical address of the base of the page table).
5. INB (contact I/O device).
Which of the following are elements of a typical process descriptor? (Recall that a process
descriptor or process control block is the per-process state kept by the kernel.)
1. Process state (blocked/runnable)
2. Address space
3. The state of the CPU registers
4. Process ID - ANS 1. Process state (blocked/runnable)
3. The state of the CPU registers
4. Process ID