Memory Management-Tutorial
Memory Management-Tutorial
Q1: Why does the computer must keep several processes in main memory?
Q3: Suppose that we have free segments with sizes: 6, 17, 25, 14, and 19. Place a
program with size 13kB in the free segment using first-fit, best-fit and worst fit?
Q5: Consider a user program of logical address of size 6 pages and page size is 4
bytes. The physical address contains 300 frames. The user program consists of
22 instructions a, b, c, . . . u, v . Each instruction takes 1 byte. Assume at that
time the free frames are 7, 26, 52, 20, 55, 6, 18, 21, 70, and 90.
Find the following? (10 degrees)
A) Draw the logical and physical maps and page tables?
B) Allocate each page in the corresponding frame?
C) Find the physical addresses for the instructions m, d, v, r?
D) Calculate the fragmentation if exist?
Q6: Consider a program consists of five segments: S0 = 600, S1 = 14 KB, S2= 100
KB, S3 =580 KB, and S4 = 96 KB. Assume at that time, the available free
space partitions of memory are 1200–1805, 50 – 150, 220-234, and 2500-3180.
Find the following:
1. Draw logical to physical maps and segment table?
2. Allocate space for each segment in memory?
3. Calculate the external fragmentation and the internal fragmentation?
4. What are the addresses in physical memory for the following logical
addresses: 0.580, (b) 1.17 (c) 2.66 (d) 3.82 (e) 4.20?