Você está na página 1de 2

Iqra University Islamabad Advance Operating Systmes Quiz#2 Q1.

The set of virtual addresses a process can reference is its address space.(1) a. True b. False Q2.The basic abstraction that the OS provides for memory management is virtual memory.(1) Q3.Swapping (1) a. save a programs entire state (including its memory image) to disk b. allows another program to be run c. first program can be swapped back in and re-started right where it was Select the correct one I. a II. a&b III. a&c IV. all of the above Q4.Paging advantages(1) a. Entire program need not be memory resident b. need one PTE per page in virtual address space c. OSs typically have separate page tables per process d. 2 references per address lookup (page table, then memory) Q5.Dealing with fragmentation(1) a. Swap a program out b. Re-load it, adjacent to another c. Adjust its base register Select the correct one I. True II. False Q6.virtual addresses are independent of location in physical memory (RAM) where referenced data lives. a. True b. False Q7.External fragmentation?(2) i. as we load and unload jobs, holes are left scattered throughout physical memory ii. slightly different than the external fragmentation for fixed partition systems Q8.Memory management requirements are?(2)

i. protection: restrict which addresses processes can use, so they cant stomp on each other ii. fast translation: memory lookups must be fast, in spite of the protection scheme iii. fast context switching: when switching between jobs, updating memory hardware (protection and translation) must be quick

Você também pode gostar