Commit Graph

29 Commits

Author SHA1 Message Date
eacd93b32d Optimise load_avg and recent_cpu updates
- only run when BSD scheduler is enabled
2024-10-16 22:56:47 +01:00
de8f303fa2 Implement BSD calculations
- load_avg, recent_cpu, priority calculations
- reduce frac bits to 14
2024-10-16 22:50:46 +01:00
5967257bb0 Fix fixed-point returns 2024-10-16 19:48:08 +01:00
EDiasAlberto
4a5de13d1e implement recent_cpu calculations on every second 2024-10-16 18:45:28 +01:00
EDiasAlberto
7a1aa21e1e implement logic to increment recent_cpu on every timer_interrupt () call 2024-10-16 18:34:56 +01:00
EDiasAlberto
0db3551a9a implement behaviour for thread recent_cpu to be defined based on parent recent_cpu, 0 for initial thread 2024-10-16 18:27:21 +01:00
Dias Alberto, Ethan
96fa718be1 Merge branch 'BSD-merged' into 'ethan-BSD'
Bring personal branch up to date

See merge request lab2425_autumn/pintos_22!5
2024-10-16 17:03:17 +00:00
Dias Alberto, Ethan
51d208f3ef Merge branch 'gleb/BSD' into 'BSD-merged'
Merge rewritten inline funcs into main BSD repo

See merge request lab2425_autumn/pintos_22!4
2024-10-16 17:02:13 +00:00
63742c5717 implement thread_get_nice & thread_get_recent_cpu 2024-10-15 19:56:46 +01:00
27d564ab49 inline funcs instead of macros for fixed-point 2024-10-15 19:45:11 +01:00
EDiasAlberto
efed660968 implement thread_set_nice and make skeleton for calculate_priority 2024-10-15 19:25:02 +01:00
EDiasAlberto
ab66551c06 implement thread_get_nice 2024-10-15 19:21:15 +01:00
EDiasAlberto
3e379acd5e modify gitignore to ignore vscode files 2024-10-15 17:27:16 +01:00
EDiasAlberto
2834af032d fix bracketing issue in ROUNDING_FP_TO_INT 2024-10-15 17:23:03 +01:00
EDiasAlberto
df89bda71e modify thread struct to track thread niceness and recent_cpu time 2024-10-15 17:09:06 +01:00
EDiasAlberto
5178b72370 comment fixed point arithmetic header 2024-10-15 15:34:06 +01:00
EDiasAlberto
724b6065f7 implement macros for fp multiplication and division 2024-10-15 15:24:34 +01:00
EDiasAlberto
1f1ffe4470 add brackets to fixed-point conversion_const calculation for clarity 2024-10-15 15:15:16 +01:00
EDiasAlberto
42b0ff9d17 define basic fixed-point arithmetic operations 2024-10-15 15:13:40 +01:00
EDiasAlberto
4e271ea5ab rewrite fixed-point.h to not have magic numbers 2024-10-15 15:04:26 +01:00
EDiasAlberto
4f6849c4a4 fix gitignore formatting 2024-10-15 14:59:57 +01:00
EDiasAlberto
1eb9abfdcd update gitignore to remove CLion files 2024-10-15 14:58:35 +01:00
EDiasAlberto
1042295e5f define fixed point arithmetic constants 2024-10-15 14:57:37 +01:00
sb3923
0a9cf6f242 Merge branch 'add-contributing-guidelines' into 'master'
Add Contributing Guidelines for Group Collaboration

See merge request lab2425_autumn/pintos_22!3
2024-10-15 03:32:59 +00:00
sBubshait
a28bae3ad1 Add Contributing Guidelines for Group Collaboration 2024-10-15 04:30:59 +01:00
Dias Alberto, Ethan
1be1350941 Merge branch 'gleb/non-busy-sleep' into 'master'
Implement non-busy timer_sleep (task 0)

See merge request lab2425_autumn/pintos_22!1
2024-10-14 18:29:16 +00:00
f5d130f832 Implement non-busy timer_sleep (task 0) 2024-10-14 19:21:53 +01:00
Mark Wheelhouse
1a669267d0 fixed interrupt disabling bug in threads_ready function 2024-10-02 15:04:13 +01:00
LabTS
8724a2641e provided code 2024-10-01 23:37:39 +01:00