5. Consider a program that generates the following set of page references: BDBAEFBFAGEFAAFBACGF AC Assuming that the program is given 4 page frames, how many page faults are generated using the following page replacement algorithms: a) FIFO b) LRU c) OPT Show the contents of the 4 page frames after every access and indicate when page faults occur. Assume all frames are empty at the beginning of the sequence. For example, the first page access (to page A) will cause a page fault, since no pages are loaded into the frames. Page A will be loaded into the first frame. This is indicated as below. Page AC BD B A EFBFA GEFA AF BAC GF Frame1 A Frame2 Frame3 Frame4 Fault Fill in the tables below and specify the number of page faults for each. a) FIFO Page Frame1 Frame2 Frame3 Frame4 Fault # faults = Y b) LRU Page ACBDBA EFB FA GEFA AF BAC GF A Y ACBDBA EFB F AGEF A A F B |A |C G F

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
5. Consider a program that generates the following set of page references:
EFBFAGEFAAFBACGF
AC BDBA
Assuming that the program is given 4 page frames, how many page faults are generated using the
following page replacement algorithms:
a) FIFO
b) LRU
c) OPT
Show the contents of the 4 page frames after every access and indicate when page faults occur.
Assume all frames are empty at the beginning of the sequence.
For example, the first page access (to page A) will cause a page fault, since no pages are loaded
into the frames. Page A will be loaded into the first frame. This is indicated as below.
Page
Frame1 A
Frame2
Frame3
Frame4
Fault
ACBD BA E F B F AGEFA AF BAC G F
Fill in the tables below and specify the number of page faults for each.
a) FIFO
# faults
Y
b) LRU
Page
Page
Frame1 A
Frame2
Frame3
Frame4
Fault
AC BD BA E F B F A GEFA AF BAC G F
Y
AC BD BA E F B F AGEF AAF BAC G F
Transcribed Image Text:5. Consider a program that generates the following set of page references: EFBFAGEFAAFBACGF AC BDBA Assuming that the program is given 4 page frames, how many page faults are generated using the following page replacement algorithms: a) FIFO b) LRU c) OPT Show the contents of the 4 page frames after every access and indicate when page faults occur. Assume all frames are empty at the beginning of the sequence. For example, the first page access (to page A) will cause a page fault, since no pages are loaded into the frames. Page A will be loaded into the first frame. This is indicated as below. Page Frame1 A Frame2 Frame3 Frame4 Fault ACBD BA E F B F AGEFA AF BAC G F Fill in the tables below and specify the number of page faults for each. a) FIFO # faults Y b) LRU Page Page Frame1 A Frame2 Frame3 Frame4 Fault AC BD BA E F B F A GEFA AF BAC G F Y AC BD BA E F B F AGEF AAF BAC G F
Framel A
Frame2
Frame3
Frame4
Fault
# faults
Y
c) OPT
Page
Frame1 A
Frame2
Frame3
Frame4
Fault
# faults
ACBD BA E F BFA GEFA AF BAC
Y
G F
Transcribed Image Text:Framel A Frame2 Frame3 Frame4 Fault # faults Y c) OPT Page Frame1 A Frame2 Frame3 Frame4 Fault # faults ACBD BA E F BFA GEFA AF BAC Y G F
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY