Question

In: Computer Science

List and define the alternative page fetch policies.   (0.5 point each) What are three replacement algorithms?...

  1. List and define the alternative page fetch policies.   (0.5 point each)
  2. What are three replacement algorithms? (.333 points each)
  3. What is the purpose of the TLB?   (0.5 points)

Solutions

Expert Solution

Solution:

PART 1: List and define the alternative page fetch policies.

There are two alternative page fetch policies.

a) Demand paging

b) Prepaging

Demand Paging:

All the pages in the frame are present in secondary memory.
Demand paging says that do not load any page from secondary memory in the main memory until it is required or demanded by the CPU.

When a page is referred for the first time in the main memory, then that page will be found in the secondary memory and is loaded in the main memory. After that, it may or may not be present in the main memory depending upon the page replacement algorithm.

Prepaging:

In the case of pre-paging pages other than demanded by the CPU on demand paging are also brought in. The OS guesses in advance which page the process will require and pre-loads them into the memory from secondary memory.

PART 2: What are three replacement algorithms?

They are as follows:

  1. FIFO Page Replacement Algorithm.
  2. LIFO Page Replacement Algorithm.
  3. LRU Page Replacement Algorithm.
  4. Optimal Page Replacement Algorithm.
  5. Random Page Replacement Algorithm.

PART 3: What is the purpose of the TLB?

The main purpose of using the Translation Look aside Buffer is to make page transition faster at a cheaper cost as compared to the cache and main memory.
It is also a memory cache which is closer to the CPU and the time taken by CPU to access TLB is lesser then that taken to access main memory.

TLB is faster and smaller than the main memory but cheaper and bigger than the register. It contains only the entries of those many pages that are frequently accessed by the CPU.


Related Solutions

P3 – Page Replacement Algorithms CS3310 Operating Systems Page Replacement: Complete the program that implements the...
P3 – Page Replacement Algorithms CS3310 Operating Systems Page Replacement: Complete the program that implements the FIFO and LRU algorithms presented in the chapter and calculates the number of page faults generated given a particular reference string. Implement the replacement algorithms such that the number of page frames can vary. Assume that demand paging is used. Required Modifications: Implement LRU and FIFO algorithms Add appropriate data structures and private helper methods to LRU.h and FIFO.h Implement the insert() method in...
Optimal and near-optimal process scheduling and page replacement algorithms. a) What is the theoretically best process...
Optimal and near-optimal process scheduling and page replacement algorithms. a) What is the theoretically best process scheduling algorithm? b) Do shortest job first and shortest remaining time first amount to the same thing or not? c) Can they be directly implemented? d) What do you consider the next best scheduling option, and how does it use the recent past to approximate the ideal case? e) Consider the analogous case in page replacement. What is the best possible choice of page...
Page Replacement Algorithms. Consider the following page reference stream and 3 page frames: 0 1 2...
Page Replacement Algorithms. Consider the following page reference stream and 3 page frames: 0 1 2 3 2 4 3 1 1 5 2 4 6 3 3 4 6 3 4 7. For the MIN, FIFO, and LRU algorithms, show the contents of the page frame after each reference, and then compute the total number of page faults, divided in to cold misses and other misses.
Write a program that implements the FIFO, LRU, and Optimal page replacement algorithms presented in chapter...
Write a program that implements the FIFO, LRU, and Optimal page replacement algorithms presented in chapter 8 of your text. First generate a random page-reference string (this should be 20 entries long) where page numbers range from 0 to 9. Apply the random page-reference string to each algorithm, and record the number of page faults incurred by each algorithm. Implement the replacement algorithms so that the number of page frames goes from 1 to 7 and you must compute the...
List three types of political systems and define each.
List three types of political systems and define each.
List and describe the three types of InfoSec Policies: In what way are policies different from...
List and describe the three types of InfoSec Policies: In what way are policies different from procedures? please explain in detail. And do not copy.
Hook Industries is considering the replacement of one of its old drill presses. Three alternative replacement...
Hook Industries is considering the replacement of one of its old drill presses. Three alternative replacement presses are under consideration. The relevant cash flows associated with each Press are shown in the following table. The firm’s cost of capital is 15%. Press A Press B Press C Initial Investment (Y0) $85,000 $60,000 $130,000 Year Cash Inflows 1 $18,000 $12,000 $50,000 2 $18,000 $14,000 $30,000 3 $18,000 $16,000 $20,000 4 $18,000 $18,000 $20,000 5 $18,000 $20,000 $20,000 6 $18,000 $25,000 $30,000...
list 5 policies for medicare and identify what goals each each adresss
list 5 policies for medicare and identify what goals each each adresss
State the null and alternative hypotheses for each of the following situations (each ½ point): a)...
State the null and alternative hypotheses for each of the following situations (each ½ point): a) A guideline for a telemarketing company states the mean time for completed calls should not exceed four minutes. Each month the company’s owner selects a random sample of call logs to determine whether the call-time goal is being met. b) General Crunch Corporation distributes Mini-Oats Cereal in boxes with a stated weight of 18 ounces. To determine whether the filling machine should be adjusted,...
List and define three sources of stress
List and define three sources of stress
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT