Page address stream 2 3 2 15 2 4 5 3 2 5 2 3 4 4. 3. 5n 4 3 OPT 3 5n 3 3. 5. F F F 2 2 3. LRU 3 1 1 4 F F F F 2 5. 3 3. FIFO 3 4 4. 4 F F F F F F 2* 3* 2* 3* 5 5 2* 5 5" 2* 3* 3" 2* 4 3 CLOCK → 3* 3 2* 4 5H F F F F 2. 324 54 524 2/3 23 2/3 23

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Consider the following string of page references 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2.
Complete a figure similar to Figure 8.14, showing the frame allocation for:

Clock

Page address
stream
2 3
2 1 5 2
4 5 3 2 5 2
4
4
4
ОРТ
3.
3.
3.
3.
3
F
F
F
3.
3
3
LRU
3
3
1
1
4
2
F
F
2.
3
3
3
FIFO
2
4
F F
4.
4
F
F
F
對電圖
2*
3*
2*
3*
2*
3*
2*
5*
2*
5*
5*
2*
5*
2*
4*
5*
2*
4*
3*
3*
2*
4
3*
CLOCK
3.
4
5*
F F
F
F
F
F= page fault occurring after the frame allocation is initially filled
475
773
23
352E
324
IL.
N54
524
254F
53-F
23
Transcribed Image Text:Page address stream 2 3 2 1 5 2 4 5 3 2 5 2 4 4 4 ОРТ 3. 3. 3. 3. 3 F F F 3. 3 3 LRU 3 3 1 1 4 2 F F 2. 3 3 3 FIFO 2 4 F F 4. 4 F F F 對電圖 2* 3* 2* 3* 2* 3* 2* 5* 2* 5* 5* 2* 5* 2* 4* 5* 2* 4* 3* 3* 2* 4 3* CLOCK 3. 4 5* F F F F F F= page fault occurring after the frame allocation is initially filled 475 773 23 352E 324 IL. N54 524 254F 53-F 23
Expert Solution
Step 1
Frame allocation for FIFO:

Since you have posted a question with multiple sub-parts, according to the company's policy we will solve the first three sub-parts for you. To get the remaining sub-part solved please repost the complete question and mention the sub-parts to be solved.

FIFO (First-In-First-Out): In this algorithm, the oldest page is in the front of the queue. When a page needs to be replaced page in the front of the queue is selected for removal.

Considering 3 frames (3 pages can be in memory at a time per process)

String of page references : 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2

Page Address Stream 7 0 1 2 0 3 0 4 2 3 0 3 2
FIFO 7 7 7 2 2 2 2 4 4 4 0 0 0
  0 0 0 0 3 3 3 2 2 2 2 2
    1 1 1 1 0 0 0 3 3 3 3
Page Faults       F   F F F F F F    

Total number of page faults = 7

Frame allocation for LRU:

 LRU (Least Recently Used): In this algorithm page will be replaced which is the least recently used.

Page Address Stream 7 0 1 2 0 3 0 4 2 3 0 3 2
LRU 7 7 7 2 2 2 2 4 4 4 0 0 0
  0 0 0 0 0 0 0 0 3 3 3 3
    1 1 1 3 3 3 2 2 2 2 2
Page Faults       F   F   F F F F    

Total number of page faults = 6

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Encryption and decryption
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education