Calculate the space required to store file in memory

Assignment Help Business Management
Reference no: EM133014853

Question:

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

Note that all processes are in sleep state at the end of their respective time intervals in the previous table. Your program should not be limited to the previous use case and you are required to test it against different other use cases.

Here is the information related to the file:

  • File size = 8Kbyte
  • Disk bloc size= 1 Kbyte
  • File initially allocated the following disk blocs: 8, 12, 1, 28, 11, 12, 4, 5
  • File required to be transferred to the memory in time interval 12
  • File required to stay in memory up to interval 16

Reference no: EM133014853

Questions Cloud

Advantages and disadvantages of recruiting expatriate staff : What are the advantages and disadvantages of recruiting expatriate staff over local staff?
Distinguish data mining from other analytical tools : a) What an organization should consider before making a decision to purchase data mining software?
Compute the amount of time : The amount of time required for an oil and filter change on an automobile is normally distributed with a mean of 45 minutes and a standard deviation of 10 minut
Case-bridgewater engineering company : Bridgewater Engineering Company (BECO), a privately held machine shop, makes heavyduty machinery for factory assembly lines. It sells its presses, grinders, and
Calculate the space required to store file 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:
What are the ethical issues in play : What are the ethical issues in play? What would you do in this situation and why? SITUATION: Tom works at an accounting office as a Chartered Accountant.
What form of business to choose initially : For this discussion board we will each assume we are starting a new company and need to decide what form of business to choose initially, and then how that migh
Identify how ethics and cultural diversity can impact team : Identify how ethics and cultural diversity can impact team building, conflict resolution, and creating effective teams healthcare. Please leave references and i
How can someone deal with the task of multiple stakeholders : In planning and conducting an evaluation, there are usually several stakeholders who have different agendas or objectives in response to the evaluation.

Reviews

Write a Review

Business Management Questions & Answers

  Largest manufacturer of motorized scooters in japan

Tonia Motorbikes is the third largest manufacturer of motorized scooters in Japan. The company sells its product, a 125cc vehicle in Japan, Taiwan, Korea, Vietnam, and other Asian markets.

  Formulate a linear programming model

Formulate a linear programming model for this problem to determine how many cases of small cups and how many cases of large cups.

  Managing a diverse workforce

A member of your sales team calls you to say that Big Oil's senior team member has told him he does not want Julie to work on their account, period. Because of cultural issues, Big Oil execs are uncomfortable dealing with women from any country. A..

  America current universal healthcare status

Discuss what congressional action you believe is most monumental toward America's current universal healthcare status and defend your position.

  Competitive strength assessment reveal about amazon

What does a competitive strength assessment reveal about Amazon 's e-commerce business, as compared to the leader's in the retail industry?

  Top training organizationsmicrosoft verizon united states

top training organizationsmicrosoft verizon united states navy and farmers insurance are the best of the best training

  What are the next steps in protecting water

Question: What are the next steps in protecting water, energy, and food security? ()

  What is a coach ethical duty

What is a coach's ethical duty as it relates to safety in youth sports?

  Implementing a data management system

Should hospital organizations be concerned about it? How would this affect implementing a data management system?

  Explain what are risk tools

What are risk tools? What have you used and for what purpose? If you have never used or encountered a risk tool, conduct some research to discover what is available in the industry you work

  Approach for increasing the amount of innovation

Create one innovative approach for increasing the amount of innovation within a large company. Describe this approach in detail and explain how companies.

  Identify the current business issue

You will now be using your knowledge and understanding of business reports to produce your own formal business report. The context (topic/theme) is a current bu

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd