首页 > 试题广场 >

Assume that you are monitoring

[问答题]
Assume that you are monitoring the rate at which the pointer in the clock algorithm (which indicates the candidate page for replacement) moves. What can you say about the system if you notice the following behavior:
a. pointer is moving fast
b. pointer is moving slow
推荐
If the pointer is moving fast, then the program is accessing a large number of pages simultaneously. It is most likely that during the period between the point at which the bit corresponding to a page is cleared and it is checked again, the page is accessed again and therefore
cannot be replaced. This results in more scanning of the pages before a victim page is found. If the pointer is moving slow, then the virtual
memory system is finding candidate pages for replacement extremely efficiently, indicating that many of the resident pages are not being
accessed.
发表于 2018-03-23 21:57:27 回复(0)