subject

Apage-replacement algorithm should minimize the number of page faults. we can achieve this minimization by distributing heavily used pages evenly over all of memory, rather than having them compete for a small number of page frames. we can associate with each page frame a counter of the number of pages associated with that frame. then, to replace a page, we can search for the page frame wit the smallest counter.

define a page-replacement algorithm using this basic idea. specifically address these problems:

i. what is the initial value of the counters.

ii. when are counters increased

iii. when are counters decreased

iv. how is the page to be replaced selected?

b. how many pages faults occur for your algorithm for the following reference string with four page frames?

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
You know the right answer?
Apage-replacement algorithm should minimize the number of page faults. we can achieve this minimizat...
Questions
question
History, 08.12.2021 22:10
question
Mathematics, 08.12.2021 22:10
Questions on the website: 13722362