• Home
  • Blog
  • Building Simple Operating System Functionality

Building Simple Operating System Functionality

0 comments

About this Assignment

In this project, you will write code that emulates how operating systems manage interaction between files and memory. The code you are writing will be functions that provide interaction between the code you have seen in the chapters Memory Management & Operating Systems and File Management Systems. As the functionality you are developing is file management related, you are required to develop your code as methods in the file management class. Upon completion of this project you will be able to:

Prompt

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

  1. 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
  2. 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)
  3. 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

Use the following example as a use case to build your code:

Total Memory size = 20 Kbyte

Page size = 1 Kbyte

Initial memory state

***Find the whole assignment here: https://study.com/academy/lesson/operating-systems…

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}