There are 9 workers for ASH Development Sdn. Bhd. as shown in Table Q4. Unfortunately, there are only 4 rooms available for these workers. Every week, a worker name is randomly selected to do odd jobs for the company. When a worker has been selected randomly, a these rooms are full. Based on Figure Q4, worker's ID number 0 (Umar) is randomly selected for the first week, and the 4 boxes represent 4 rooms for room needs to be vacated if workers.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter4: Single-table Queries
Section: Chapter Questions
Problem 11CAT
icon
Related questions
Question
(b)
Least Recently Used (LRU) replacement algorithm
Transcribed Image Text:(b) Least Recently Used (LRU) replacement algorithm
Q4
There are 9 workers for ASH Development Sdn. Bhd.
Unfortunately, there are only 4 rooms available for these workers. Every
week, a worker name is randomly selected to do odd jobs for the company.
When a worker has been selected randomly, a
these rooms are full. Based on Figure Q4, worker's ID number 0 (Umar) is
randomly selected for the first week, and the 4 boxes represent 4 rooms for
as shown in Table Q4.
room needs to be vacated if
workers.
Table Q4
Worker's ID
Worker's Name
Umar
1.
Lukman
Arif
Yusuf
Anas
Muadz
Aleef
Hafiz
8.
Amir
9.
Taufik
WI
4
6
2
9.
4
1
3
8
D
R2
R3
R4
W
W
W1
w1
Wi
w1
W1
w1
w1
wi
Wi
W1
2
3
4 56
78 9
1
2
3
4
5
6
8
9
Figure Q4
Investigate the number of page faults occur by illustrating the way how the room is managed
using the list of weekly random selection of workers as shown in Figure Q4 using the
following algorithms:
(a)
Optimal Page Replacement (OPR) replacement algorithm
2.
RRR
Transcribed Image Text:Q4 There are 9 workers for ASH Development Sdn. Bhd. Unfortunately, there are only 4 rooms available for these workers. Every week, a worker name is randomly selected to do odd jobs for the company. When a worker has been selected randomly, a these rooms are full. Based on Figure Q4, worker's ID number 0 (Umar) is randomly selected for the first week, and the 4 boxes represent 4 rooms for as shown in Table Q4. room needs to be vacated if workers. Table Q4 Worker's ID Worker's Name Umar 1. Lukman Arif Yusuf Anas Muadz Aleef Hafiz 8. Amir 9. Taufik WI 4 6 2 9. 4 1 3 8 D R2 R3 R4 W W W1 w1 Wi w1 W1 w1 w1 wi Wi W1 2 3 4 56 78 9 1 2 3 4 5 6 8 9 Figure Q4 Investigate the number of page faults occur by illustrating the way how the room is managed using the list of weekly random selection of workers as shown in Figure Q4 using the following algorithms: (a) Optimal Page Replacement (OPR) replacement algorithm 2. RRR
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Complex Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning