Solving Memory Management Problems to liberate space in memory

In this project, assume that files are stored on the hard disk using linked storage allocation. Your task is to write a code that:

Collects information about all the fragments of the file from the hard disc in order to calculate the total required space needed for the file in memory
Calculates the space required to store the file in memory (For simplicity, you can assume that this space equals only to the total size of the file. Do not consider other related metadata)
Allocates space in memory for the file. If needed, you can use the code you wrote in Assignment 1: Solving Memory Management Problems to liberate space in memory

This question has been answered.

Get Answer