Computer Science, asked by thapasabina711, 10 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

Answers

Answered by Fatimakincsem
0

The possibilities in each case are given as below.

Explanation:

  • When 200 words are used, then the subroutines of 350 or 400 can be called.
  • In case of 350, if two pages are used for 200 words then 50 words memory will be wasted
  • In case of 400, if two pages are used for 200 words and 50 words memory will be wasted
  • (b) In case of 600 words, if 600 subroutine are used then no memory is wasted
  • (c) In case of 500 words, when 600 subroutine are used  then 100 words memory will be wasted
  • (d) In case of 900, if we use 600 subroutine, then two pages will be used and 300 words memory will be wasted.

Similar questions