Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged least-recently-used
21
votes
4
answers
1
GATE CSE 2023 | Question: 47
Consider the following two-dimensional array $\text{D}$ in the $\text{C}$ programming language, which is stored in row-major order: int D[128][128]; Demand paging is used for allocating memory and each physical page frame holds $512$ elements of the ... j++) D[j][i] *= 10; The number of page faults generated during the execution of this code snippet is _______________.
Consider the following two-dimensional array $\text{D}$ in the $\text{C}$ programming language, which is stored in row-major order:int D[128][128];Demand paging is used f...
admin
10.6k
views
admin
asked
Feb 15, 2023
Operating System
gatecse-2023
operating-system
page-replacement
least-recently-used
page-fault
numerical-answers
2-marks
+
–
2
votes
1
answer
2
DRDO CSE 2022 Paper 2 | Question: 6
Compute the hit rate and miss/fault rate in least recently used page replacement algorithm for the given reference string with $4$ page frames. String: $7 \; 0 \; 1 \; 2 \; 0 \; 3 \; 4 \; 2 \; 3 \; 0 \; 3 \; 2 \; 1 \; 2 \; 0 \; 1$
Compute the hit rate and miss/fault rate in least recently used page replacement algorithm for the given reference string with $4$ page frames. String: $7 \; 0 \; 1 \; 2 ...
admin
517
views
admin
asked
Dec 15, 2022
Operating System
drdocse-2022-paper2
operating-system
page-replacement
least-recently-used
page-fault
4-marks
descriptive
+
–
0
votes
0
answers
3
William Stallings - Computer Organization and Architecture D
A computer system contains a main memory of 32KB. It also has a 4KB cache divided into four-lines/set with 64B per line. Assume that the cache is initially empty. The processor fetches words from locations 0, 1, 2, . . . ... from the use of the cache. Assume an LRU policy for block replacement. Show the state of cache at the end.
A computer system contains a main memory of 32KB. It also has a 4KB cache divided into four-lines/set with 64B per line. Assume that thecache is initially empty. The proc...
lucifer069
309
views
lucifer069
asked
Sep 15, 2021
CO and Architecture
co-and-architecture
pipelining
control-unit
least-recently-used
+
–
0
votes
2
answers
4
NIELIT 2016 MAR Scientist B - Section C: 38
Determine the number of page faults when references to pages occur in the following order: $1,2,4,5,2,1,2,4$. Assume that the main memory can accommodate $3$ pages and the main memory already has the pages $1$ and $2$, with page $1$ having been brought earlier than page $2$.(LRU algorithm is used). $3$ $5$ $4$ None of these.
Determine the number of page faults when references to pages occur in the following order: $1,2,4,5,2,1,2,4$. Assume that the main memory can accommodate $3$ pages and th...
admin
947
views
admin
asked
Mar 31, 2020
Operating System
nielit2016mar-scientistb
operating-system
page-replacement
page-fault
least-recently-used
+
–
1
votes
0
answers
5
Andrew S. Tanenbaum (OS) Edition 4 Exercise 3 Question 31 (Page No. 257)
Give a simple example of a page reference sequence where the first page selected for replacement will be different for the clock and $LRU$ page replacement algorithms. Assume that a process is allocated $3=\text{three}$ frames, and the reference string contains page numbers from the set $0, 1, 2, 3.$
Give a simple example of a page reference sequence where the first page selected for replacement will be different for the clock and $LRU$ page replacement algorithms. As...
admin
350
views
admin
asked
Oct 26, 2019
Operating System
tanenbaum
operating-system
memory-management
page-replacement
least-recently-used
descriptive
+
–
1
votes
4
answers
6
UGC NET CSE | June 2019 | Part 2 | Question: 43
Consider that a process has been allocated $3$ frames and has a sequence of page referencing as $1, 2, 1, 3, 7, 4, 5, 6, 3, 1$. What shall be the difference in page faults for the above string using the algorithms of LRU and optimal page replacement for referencing the string? $2$ $0$ $1$ $3$
Consider that a process has been allocated $3$ frames and has a sequence of page referencing as $1, 2, 1, 3, 7, 4, 5, 6, 3, 1$. What shall be the difference in page fault...
Arjun
4.3k
views
Arjun
asked
Jul 2, 2019
Operating System
ugcnetcse-june2019-paper2
page-replacement
least-recently-used
+
–
0
votes
0
answers
7
ME TEST
A byte addressable computer has a small data cache capable of holding 16 32-bit words. Each cache block consist of four 32 bits words. For the following sequence of main memory addresses (in hexadecimal). The conflict miss if 2-way set associative LRU cache is used is_____ 100,108, 114 ... what will be the address partition look like. 1. tag(7) set(1) offset(4) 2. tag(7) set(1) offset(2)
A byte addressable computer has a small data cache capable of holding 16 32-bit words. Each cache block consist of four 32 bits words. For the following sequence of main ...
newdreamz a1-z0
375
views
newdreamz a1-z0
asked
Jan 21, 2019
CO and Architecture
co-and-architecture
cache-memory
least-recently-used
+
–
0
votes
0
answers
8
Self doubt
Can anyone explain me the working of NRU & SECOND CHANCE REPLACEMENT ALGORITHM.
Can anyone explain me the working of NRU & SECOND CHANCE REPLACEMENT ALGORITHM.
Jyoti Kumari97
164
views
Jyoti Kumari97
asked
Jan 15, 2019
Operating System
operating-system
page-replacement
least-recently-used
+
–
0
votes
0
answers
9
Gate forum work book
Assume that we have three scenarios l. a fully associative cache, 2. a two way set associative cache and 3. a direct mapped cache. The cache size is 256 bytes. The cache line size is 8 bytes. All variables are 4 bytes. Assume that we have separate instruction and ... many data cache read misses will occur in Two-ay set associative cache? (A)11 (B) 19 (C) 35 (D) None of these
Assume that we have three scenariosl. a fully associative cache,2. a two way set associative cache and3. a direct mapped cache.The cache size is 256 bytes. The cache line...
pream sagar
419
views
pream sagar
asked
Oct 19, 2018
CO and Architecture
co-and-architecture
cache-memory
least-recently-used
gateforum-booklet
+
–
3
votes
1
answer
10
LRU page replacement policy
Self doubt: What is the rule or keyb point we should keep in mind while solving problems on LRU page replacement algorithm? Please explain with examples.
Self doubt:What is the rule or keyb point we should keep in mind while solving problems on LRU page replacement algorithm? Please explain with examples.
Sona Barman
471
views
Sona Barman
asked
Jan 18, 2018
Operating System
operating-system
page-replacement
least-recently-used
page-fault
+
–
6
votes
0
answers
11
OS Galvin - Doubt
Strangely, if we let $S^R$ be the reverse of a reference string S, then the page-fault rate for the OPT algorithm on S is the same as the page-fault rate for the OPT algorithm on $S^R$ . Similarly, the page-fault rate for the LRU algorithm on S is the same as ... time, rather than forward." So, shouldn't it be: page-fault-rate(OPT($S$)) = page-fault-rate(LRU($S^R$)) ???
Strangely, if we let $S^R$ be the reverse of a reference string S, then the page-fault rate for the OPT algorithm on S is the same as the page-fault rate for the OPT algo...
Rishabh Gupta 2
916
views
Rishabh Gupta 2
asked
Nov 26, 2017
Operating System
paging
operating-system
page-replacement
least-recently-used
optimal
+
–
1
votes
0
answers
12
Operating Systems Concepts Page fault using LRU
if you have 10 Frames and using LRU how many page fault will be there in both below: for (int j = 0; j < 100; j++) for (int i = 0; i < 100; i++) A[i][j] = A[i][j] + A[j][i]; for (int i = 0; i < 100; i++) for (int j = 0; j < 100; j++) A[i][j] = A[i][j] + A[j][i];
if you have 10 Frames and using LRU how many page fault will be there in both below: for (int j = 0; j < 100; j++) for (int i = 0; i < 100; i++) A[i][j] = A[i][j] + A[j]...
ashu0316
392
views
ashu0316
asked
Nov 13, 2017
Operating System
operating-system
page-fault
least-recently-used
+
–
0
votes
1
answer
13
LRU replacement
" In the case of LRU, ( and particularly the stack implementation thereof ), the top N pages of the stack will be the same for all frame set sizes of N or anything larger." Can somebody please explain what this means? Please refer : https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
" In the case of LRU, ( and particularly the stack implementation thereof ), the top N pages of the stack will be the same for all frame set sizes of N or anything larger...
Warlock lord
396
views
Warlock lord
asked
Aug 25, 2017
Operating System
least-recently-used
+
–
0
votes
0
answers
14
set associative cache
debanjan sarkar
317
views
debanjan sarkar
asked
Jan 24, 2017
CO and Architecture
least-recently-used
cache-memory
+
–
0
votes
1
answer
15
ace operating system
Answer given is B, but I think it should be D. Stack will pop the least recently used page from the top. How can having most recently used page on top help in LRU implementation?
Answer given is B, but I think it should be D. Stack will pop the least recently used page from the top. How can having most recently used page on top help in LRU impleme...
Purple
745
views
Purple
asked
Nov 29, 2016
Operating System
operating-system
paging
least-recently-used
page-replacement
+
–
0
votes
6
answers
16
UGC NET CSE | August 2016 | Part 2 | Question: 37
Suppose that the virtual Address space has eight pages and physical memory with four page frames. If $LRU$ page replacement algorithm is used, ______ number of page faults occur with the reference string. 0 2 1 3 5 4 6 3 7 4 7 3 3 5 5 3 1 1 1 7 2 3 4 1 $11$ $12$ $10$ $9$
Suppose that the virtual Address space has eight pages and physical memory with four page frames. If $LRU$ page replacement algorithm is used, ______ number of page fault...
makhdoom ghaya
1.9k
views
makhdoom ghaya
asked
Sep 28, 2016
Operating System
ugcnetcse-aug2016-paper2
operating-system
least-recently-used
page-replacement
+
–
2
votes
1
answer
17
GATE Overflow | Operating Systems | Test 1 | Question: 25
There is a 4 way set associative cache memory with 8 cache blocks. The main memory consists of 256 blocks and the request for memory blocks is in that order: $0,255,1,4,3,8,133,159,216,129,63,8,48,32,73,92,155 $ Which one of the following memory block will not be in cache if LRU replacement policy is used? 159 8 129 48
There is a 4 way set associative cache memory with 8 cache blocks. The main memory consists of 256 blocks and the request for memory blocks is in that order:$$0,255,1,4,3...
Bikram
517
views
Bikram
asked
Sep 3, 2016
Operating System
go-os-1
operating-system
co-and-architecture
cache-memory
least-recently-used
+
–
1
votes
2
answers
18
GATE Overflow | Operating Systems | Test 1 | Question: 16
Determine the number of page faults when references to pages occur in the sequence -$1,2,4,5,2,1,2,4$. Assume that the main memory can accommodate 3 pages and already has pages 1, 2 with page 1 having been brought earlier than page 2 and LRU being the replacement strategy used.
Determine the number of page faults when references to pages occur in the sequence -$1,2,4,5,2,1,2,4$. Assume that the main memory can accommodate 3 pages and already ha...
Bikram
499
views
Bikram
asked
Sep 3, 2016
Operating System
go-os-1
operating-system
numerical-answers
page-replacement
least-recently-used
+
–
0
votes
1
answer
19
LRU policy
In LRU policy for cache replacement. the least recently used block is replaced. So, what happens when all the slots are empty at beginning? Is LRU or MRU easier to implement? Why?
In LRU policy for cache replacement. the least recently used block is replaced. So, what happens when all the slots are empty at beginning?Is LRU or MRU easier to impleme...
Arjun
608
views
Arjun
asked
Jan 11, 2016
CO and Architecture
least-recently-used
cache-memory
+
–
9
votes
3
answers
20
page replacement
An 8 byte, 2-way set associative (using LRU replacement) with 2 byte blocks receives requests for the following addresses (represented in binary): 0110, 0000, 0010, 0001, 0011, 0100, 1001, 0000, 1010, 1111, 0111 . How page replacement is done?What are the types of misses occured in this case?
An 8 byte, 2-way set associative (using LRU replacement) with 2 byte blocks receives requests for the following addresses (represented in binary): 0110, 0000, 0010, 0001,...
Sara
3.4k
views
Sara
asked
Oct 18, 2015
CO and Architecture
co-and-architecture
cache-memory
least-recently-used
misses
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register