Commit Graph
10 Commits
Author SHA1 Message Date
cyclane 093c6efd30 Re-sort ready_list when priorities update + PRI_UPDATE_FREQ
- PRI_UPDATE_FREQ is a separate value from TIME_SLICE, they just
  happen to be set the same.
2024-10-25 09:13:27 +01:00
cyclane cbb9d52455 Recover removed comment 2024-10-17 20:09:43 +01:00
cyclane 044c383a0f fix mlfqs tests, complete BSD scheduling 2024-10-17 18:31:09 +01:00
cyclane c5e41db9b0 Implement BSD calculations
- load_avg, recent_cpu, priority calculations
- reduce frac bits to 14
- ignore thread_set_priority when BSD enabled
2024-10-17 18:31:09 +01:00
cyclane a7a6d0b9d4 Fix fixed-point returns 2024-10-17 18:31:09 +01:00
cyclane 630fbaa3ab implement thread_get_nice & thread_get_recent_cpu 2024-10-17 18:31:09 +01:00
cyclane 82cc108c38 inline funcs instead of macros for fixed-point 2024-10-17 18:31:09 +01:00
cyclane 62cca87322 Merge branch 'gitlab-ci' into 'master'
GitLab CI & testing image

See merge request lab2425_autumn/pintos_22!2
2024-10-17 17:30:41 +00:00
cyclane f5d130f832 Implement non-busy timer_sleep (task 0) 2024-10-14 19:21:53 +01:00
cyclane d51648d7dc GitLab CI & testing image 2024-10-10 17:34:33 +01:00