feat: implement clock (second-chance) page eviction algorithm

This commit is contained in:
Themis Demetriades
2024-11-30 22:40:13 +00:00
parent ea2725f606
commit 6f85d7642d
6 changed files with 209 additions and 51 deletions

9
src/vm/page.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef VM_PAGE_H
#define VM_PAGE_H
#include "threads/thread.h"
void page_set_swap (struct thread *, void *, size_t);
size_t page_get_swap (struct thread *, void *);
#endif /* vm/frame.h */