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

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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