Project 1

이후띵·2021년 12월 27일
0

PintOS

목록 보기
12/31

Alarm Clock

Reimplement timer_sleep(), defined in devices/timer.c.

Although a working implementation is provided, it busy waits, that is, it spins in a loop checking the current time and calling thread_yield() until enough time has gone by. Reimplement it to avoid busy waiting.

void timer_sleep(int64_t ticks);

Suspends execution of the calling thread until time has advanced by at least x timer ticks. Unless the system is otherwise idle, the thread need not wake up after exactly x ticks. Just put it on the ready queue after they have waited for the right amount of time.

-> busy waiting 피해서 코드 고치기

Priority Scheduling

Implement priority scheduling and priority donation in Pintos.

https://casys-kaist.github.io/pintos-kaist/project1/priority_scheduling.html

profile
이후띵's 개발일지

0개의 댓글