What does the systems paging algorithm reduce

Assignment Help Operating System
Reference no: EM132146306

Question 1

Answer the following questions: 10 marks a. Consider the following page reference string: 3, 1, 4, 1, 2, 3, 5, 3, 2, 1, 2,5, 4, 3, 5, 2, 4,2, 5,3
Using the above page reference string display the contents of the frames after each page reference (cf. Figures 9.12, 9.14, or 9.15 of the text book, either edition). Mark when a page fault occurs.

Assume 3 frames and use the following algorithms e LRU replacement e FIFO replacement e Optimal replacement

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 used 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. Unix has the concept of a "hard link" and a "soft link". Ex- plain how a Unix file-system implements each type of link.

b. Based on the file-system implementation discussed above explain why Unix does not allow a "hard link" to a directory but will allow a "soft link" to a directory.

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 nor- mally 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 3

What are the steps required to be performed by the Ext2 file system driver to delete a file? Assume you know and have in memory a copy of the inode of the directory the file is in and the inode of the file to be deleted. Also assume the block size is 1024 bytes. Either list the steps required or use a flowchart. (See the week11 practical for information on the Ext2 file system and examples of listing the required steps or writing a flowchart)

Question 4

Answer the following questions:

a. In most multiprogramming systems, user programs access memory through virtual addresses, while the operating sys- tem and DMA controllers use raw physical addresses to ac- cess memory. What are the implications of this design on the initiation of I/O operations by the user program and their ex- ecution by the operating system?

b. An open-file table is used to maintain information about files that are currently being accessed by a process. Should the operating system maintain a separate table for each process or just maintain one table that contains references to files that are being accessed by all processes at the current time, or use both types of tables? Justify your answer.

Verified Expert

The solution file is prepared in ms word which discussed about page replacement algorithm on given problem and solved with FIFO, LRU and optimal algorithm for frame 3 and frame 4. It has discussed dynamic memory allocation, hard link and soft link, deletion of ext2 file system, without unmount of USB drive. The solution has around 1800 words and references are include as per APA format.

Reference no: EM132146306

Questions Cloud

How is continuous improvement related to innovation : Total quality management involves a continuous improvement approach. 1. How is continuous improvement related to innovation?
Create an identity for your team : Create an identity for your team, it looks like the Salt Lake Screaming Eagles is the only "existing" team, Next, give your team a brief Mission Statement.
Describe normative and nonnormative age-graded influences : Explain why issues such as commonalities, stability, and change are considered significant in the study of adult development?
How does it integrate strategic and operational control : The balanced scoreboard approach has gained popularity in recent years. What is this approach and how does it integrate strategic and operational control?
What does the systems paging algorithm reduce : What does the system's paging algorithm reduce to if the number of resident pages is set to one - What does the system's paging algorithm reduce
What are the pros and cons of each : 1. Why is strategic control important in the strategy implementation process?
Use multiple sources when writing research paper : Why is it critical to use multiple sources when writing a research paper?
How would you assess for suicidality : Why is identifying the "real story" important for effective counseling? What difficulties could occur if you do not focus your counseling on the "real story?"
Terms of processes and lateral capabilities : What kind of challenges and opportunities is Four Seasons Hotels facing in terms of processes and lateral capabilities?

Reviews

urv2146306

11/29/2018 11:34:11 PM

Excellent 1 till now as per the expectation I got very Good marks so please provide this kind of solution. Awesome Job. Submitted by deadline and received great scores too. Surely recommend to all students Best in class assignment service with top in town experts for assignment and best in class service. Awsome work by an experienced expert thank u so much.

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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