How is free space generated for the newly requested page

Assignment Help Other Subject
Reference no: EM132650044

CSC2404 Operating Systems Assignment - University of Southern Queensland, Australia

Question 1 - Answer the following questions:

a. Consider the following page reference string:

1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6

Using the above page reference string display the contents of the frames and marking when a page fault occurs after each page reference. Use the following algorithms

- LRU replacement

- FIFO replacement

- Optimal replacement

and assume 3 frames. Repeat using 4 frames.

Remember that all frames are initially empty, so the first unique pages will cost one fault each.

b. The VAX/VMS system uses a FIFO replacement algorithm for resident pages and a free-frame pool of recently used pages. Assume that the free-frame pool is managed using the least recently used (LRU) replacement policy. Answer the following questions:

(i) If a page fault occurs and if the page does not exist in the free-frame pool, how is free space generated for the newly requested page?

(ii) If a page fault occurs and if the page exists in the free-frame pool, how is the resident page set and the free-frame pool managed to make space for the requested page?

(iii) What does the system's paging algorithm reduce to if the number of resident pages is set to one?

(iv) What does the system's paging algorithm reduce to if the number of pages in the free-frame pool is zero?

Question 2 - Answer the following questions:

a. Explain what information is stored in a file-system's directory structure.

b. Explain why it is important that a file-system's directory structure be acyclic.

c. What methods can a system employ to ensure that the directory structure is acyclic?

d. Consider a file system in which a file can be deleted and its disk space reclaimed while links (directory file entries) to that file still exist.

(i) What problems may occur if a new file is created in the same storage area or with the same absolute path name?

(ii) How can these problems be avoided?

Question 3 - Answer the following questions:

a. Explain what a file-system "journal file" or "transactional log file" is.

b. Explain why the existence of the "log" or "journal" file ensures recovery of a file system after a system crash.

c. When copying a file to a USB flash drive on a Unix system it is extremely important to unmount the flash drive before removing the device. Explain why. If the USB flash drive is removed before unmounting then the copied file will normally appear on the flash drive's file system (have a directory entry and an inode) but will be empty. Explain why the file meta data is copied synchronously but the file data is copied asynchronously.

Question 4 - What are the steps required to be performed by the Ext2 file system kernel module to create a new file that contains 4000 bytes of data? Assume that a copy of the directory inode the file is to be created in is already in memory. Also assume the block size is 1024 bytes. Either list the steps required or use a flowchart. (See the week 11 practical for information on the Ext2 file system and examples of listing the required steps or writing a flowchart).

Reference no: EM132650044

Questions Cloud

Describe? mendez ethical responsibilities : Describe? Mendez's ethical responsibilities. What should Mendez do if Dalton gives her a direct order to book the? sales? Explain in detail.
Explain the concept of person-environment transactions : Explain the concept of person-environment transactions, making at least one link to the core course material when describing this concept. Now, discuss two exam
What is the incremental analysis for the five years : What is the incremental analysis for the 5 years showing whether Hancock should keep the existing machine or buy the new machine.
Highlighting major discoveries and developments in science : Making a timeline: Review the history and make a timeline highlighting the major discoveries and developments in science in early 16th up to 18th century.
How is free space generated for the newly requested page : If a page fault occurs and if the page does not exist in the free-frame pool, how is free space generated for the newly requested page
How to find technical engineering variable cost per copy : Determine Technical Engineering's variable cost per copy via high low method.Technical Engineering presently leases a copying machine
How hormones control the female menstrual cycle : Describe how hormones control the female menstrual cycle beginning with day 1 as the first day of the period.
Analysis of sutcliffe industries fixed costs revealed : Analysis of Sutcliffe Industries's fixed costs revealed that the company actually faces annual fixed overhead costs of $9,800 and annual fixed selling
Determined the amount of overhead that would be allocated : Determined the amount of overhead that would be allocated to the proposed job if direct labor hours is used as the volume-based cost driver.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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