[PintOS] 1-2 Priority Scheduler, Priority Donation
GIT[thread.c, thread.h, synch.c, synch.h] 이론 영상 출처 : https://www.youtube.com/watch?v=myO2bs5LMak1. Priority schedulerWhy Priority Scheduler ?- Alarm Clock에서는 tick 단위로 실행 thread 관리, sleep & wake 상태로 thread 실행 관리- FIFO 방식이므로 thread의 중요도를 고려하지 않는 한계=> thread에 priority 요소를 추가하여, 우선순위를 고려한 scheduling을 하고자 함- 우선순위를 고려한다는 것은, priority라는 요소를 struct thread에 추가한다는 것 - 기존의 ready_list에 thread를 insert 할 때, p..
2024.05.18