Tutorial 08 Questions
Tutorial 08 Questions
1. Consider the page table for a system with 12-bit virtual and physical addresses with
256-byte pages. The list of free page frames is D, E, F (D is at the head of the list,
E is second, and F is last)
Page Frame
0 -
1 2
2 C
3 A
4 -
5 4
6 3
7 -
8 B
9 0
(i) 9EF
(ii) 111
(iii) 700
(iv) 0FF
2. Consider the following page table in a demand paging system. Assume the page
size of 2000 bytes. Assume the usage of decimal values.
Check whether the virtual addresses given below would generate a page fault?
If it do not generate page fault, identify the physical address.
(i) 10230
(ii) 5213
(iii) 100
(iv) 8125
3. On a system using demand-paged memory, it takes 200ns to satisfy a memory
request if the page is in memory. If the page is not in memory, the request takes
7ms if a free frame is available or the page to be swapped out has not been modified.
It takes 15ms if the page to be swapped out has been modified. What is the effective
access time if the page fault rate is 5%, and 60% of the time the page to be replaced
has been modified/free frame is not available?
4. Consider a demand-paging system with a paging disk that has an average access
and transfer time of 20 milliseconds. Addresses are translated through a page table
in main memory, with an access time of 1 microsecond per memory access. Thus
each memory reference through the page table takes two accesses.
To improve this time, an associative memory is added that reduces access time to
one memory reference if the page-table entry is in the associative memory.
Assume that 80 percent of the accesses are in the associative memory and 10 percent
cause page faults. What is the effective memory access time?
Assume the availability of FOUR frames and al the frames are initially empty. How
many page faults would occur for First in First out (FIFO) page replacement
algorithm? Identify the final pages in the frames.
Assume the availability of FOUR frames and al the frames are initially empty. How
many page faults would occur for Least Recently Used (LRU) page replacement
algorithm? Identify the final pages in the frames.
Assume the availability of FOUR frames and al the frames are initially empty. How
many page faults would occur for optimal page replacement algorithm? Identify the
final pages in the frames.
8. Given a system with four page frames, the following table indicates page number,
load time, last reference time, dirty bit, and reference bit.
9. Assume that a computer system has four frames and uses six reference bits to
implement additional-reference bits (aging) page-replacement algorithm. At the
first clock tick, the reference bits for pages 0 through 3 are 1,0,1, and 1 respectively.
Values at subsequent ticks are 0011,1001,0110,1100, and 0001.
(i) After the last tick, what is the value of the reference bits for all four pages?
(ii) Identify the victim page for page replacement.
References: