documenting smp and scheduling to research

This commit is contained in:
2026-07-03 21:24:44 +01:00
parent f9f0511ac2
commit a6de418e42
3 changed files with 167 additions and 2 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ const heap = @import("heap.zig");
pub const Priority = u3;
const num_priorities = 8;
const stack_size = 16 * 1024; // per-task kernel stack
const max_tasks = 16;
const stack_size = 16 * 1024; // each task's kernel stack is 16 KiB
const max_tasks = 16; // the maximum number of tasks alive at once is 16 in a static sized pool
const State = enum { free, ready, running, blocked };