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

  Describe the relations between data and information

Describe the relations between data and information. Read and answer the discussion questions, using complete sentences, correct spelling, correct punctuation.

  Have you studied and traveled overseas

Have you studied and/or traveled overseas? Have you had a roommate whose cultural background differs from yours? Do you work in a job where you encounter people from different cultures?

  Groups of international islamic terrorists

Why does the groups of international Islamic terrorists that are determined to fulfil their goals and objectives

  Great deal of information searching during decision making

Imagine that you have two alternative market segments. They re different only in their inclination to information search. Segment A does a great deal of information searching during decision making.

  Would bob continue to go to the old salon

Draw Bob's budget line for visits to the salon and all other goods, show the consumption bundle that maximizes his satisfaction, and draw the indifference curve

  Analyze at least two of the agency policies and procedures

Evaluate the practicality of union presence in your selected agency and recommend at least two (2) reasons why the agency should or should not have union.

  Application in the network design process

Explore LAN design principles and their application in the network design process and Implement a network using LAN design principles based on a predefined set

  Theories of development-piaget cognitive theory

Piaget's cognitive developmental theory approach stresses the growth of the ability to universalize or abstract as children grow. His theory deals only with children.

  Research paper on theatre history about china

Research Paper on Theatre History about China and Indonesian Puppet Theatre

  Proposal assessing current vulnerability of critical asset

Assume you hold the role of the security manager for the Cardinals Stadium. Write a proposal assessing the current vulnerability of the critical asset.

  Explore several topics relating to the age of university

Explore several topics relating to the Age of University Building and the "Golden Age" of colleges impacting higher education between the years .

  Explain how generalist intervention model might assist you

A brief description of your population of interest also explain how Generalist Intervention Model might assist you in working with this population given what you have read so far.

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