PintOS P3 #A : Clock Algorithm
static struct frame *vm_get_victim (void) { // Clock Algorithm : 2번 순회해서 찾아냄 struct frame *victim = NULL; struct list_elem *e; lock_acquire(&g_frame_lock); for (e = list_begin (&g_frame_table); e != list_end (&g_frame_table); e = list_next (e)) { struct frame *frame = list_entry (e, struct frame, f_elem); if(pml4_is_accessed(&thread_current()->pml4, frame->page->va)) pml4_set_accessed(&..