Database Questions: Q1
Posted: Sat May 14, 2022 2:51 pm
Database Questions:
Q1
Consider the CLOCK page replacement policy. Assume that there are only 3 page slots available in the buffer pool. If a page reference sequence is: 0,4, 1, 4, 2, 4, 3, 4 (in order from left to right). What happens when the second 4 (i.e., the 4 underlined with blue color) is referenced? It is evicted. Its reference bit is set to 1. Nothing changes. Its reference bit is set to 0.
Q1
Consider the CLOCK page replacement policy. Assume that there are only 3 page slots available in the buffer pool. If a page reference sequence is: 0,4, 1, 4, 2, 4, 3, 4 (in order from left to right). What happens when the second 4 (i.e., the 4 underlined with blue color) is referenced? It is evicted. Its reference bit is set to 1. Nothing changes. Its reference bit is set to 0.