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

View File

@@ -1,10 +1,11 @@
#ifndef VM_FRAME_H
#define VM_FRAME_H
#include "threads/thread.h"
#include "threads/palloc.h"
void frame_init (void);
void *frame_alloc (enum palloc_flags);
void *frame_alloc (enum palloc_flags, void *, struct thread *);
void frame_free (void *frame);
#endif /* vm/frame.h */