Cycle through multiple tasks in multiple processes
This commit is contained in:
parent
7a3b4d2d42
commit
d3024211a7
6 changed files with 56 additions and 12 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue