Cycle through multiple tasks in multiple processes

This commit is contained in:
Drew Galbraith 2023-05-18 13:56:54 -07:00
parent 7a3b4d2d42
commit d3024211a7
6 changed files with 56 additions and 12 deletions

View file

@ -18,7 +18,10 @@ extern "C" void zion() {
phys_mem::InitPhysicalMemoryManager();
sched::InitScheduler();
sched::CurrentProcess().CreateThread();
Process p1;
p1.CreateThread();
Process p2;
p2.CreateThread();
sched::EnableScheduler();
sched::Yield();