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 program’s 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. OS’s 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)

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

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.