time_sleep()
은 thread가 다시 시작되는 조건을 충족할 때까지 계속 실행되어 조건이 충족되었는지 확인하게 됨RUNNING
> READY
> RUNNING
> READY
> ... 상태 변경이 반복됨pintOS GitBook 1주차 FAQ
If the highest-priority thread yields, does it continue running?
Yes. If there is a single highest-priority thread, it continues running until it blocks or finishes, even if it calls thread_yield(). If multiple threads have the same highest priority, thread_yield() should switch among them in "round robin" order.
thread_yield()
참고)list_insert_ordered()
참고)schedule()
참고) thread_compare_priority()
참고)