Computer Science, asked by rashmitagautam123, 7 months ago

Given three subroutines of 600, 350, and 400 words each, if segmentation is used then the  total memory needed is the sum of the three sizes (if all three routines are loaded). However,  if paging is used then some storage space is lost because subroutines rarely fill the last page  completely, and that results in internal fragmentation.   Determine the total amount of wasted memory due to internal fragmentation when the three  subroutines are loaded into memory using each of the following page sizes:   a. 200 words   b. 600 words   c. 500 words   d. 900 words      

Answers

Answered by nidaeamann
2

Explanation:

a) When 200 words will be used, then the subroutines of 350 or 400 can be called.

In case 350, two pages will be used for 200 words and 50 words memory will be wasted

In case 400, two pages will be used for 200 words and 50 words memory will be wasted

b) In case of 600 words, we will used 600 subroutine and no memeory is wasted

c) Incase of 500 words, when we use 600 subroutine, then 100 words memory will be wasted

d) Incase of 900, if we use 600 subroutine, then two pages will be used and 300 words memory will be wasted.

Similar questions