Tuesday, January 4, 2011

CASE STUDY #4 - MEMORY ALLOCATION IN DYNAMIC PARTITION AND RELOCATABLE DYNAMIC PARTITION

Load the following jobs into memory using dynamic partition and relocatable dynamic partition: (The memory size is 220k with allocated OS for 15k).

a. Job1 (100k)             f. Job6 (6k)
turnaround: 3                turnaround: 1

b. Job2 (10k)               g. Job7 (25k)
turnaround: 1                turnaround: 1

c. Job3 (35k)               h. Job8 (55k)
turnaround: 2                turnaround: 2

d. Job4 (15k)               i. Job9 (88k)
turnaround: 1                turnaround: 3

e. Job5 (23k)               j. Job10 (100k)
turnaround: 2                turnaround: 3

*turnaround – how long it will stay in the memory.
*apply compaction if only if the incoming jobs has no other block to allocate that will fit their sizes.


Click the picture to see the full size.

DYNAMIC PARTITION




RELOCATABLE DYNAMIC PARTITION




No comments:

Post a Comment