Files
TestOS/os/main.c
2024-11-02 19:07:52 +01:00

18 lines
304 B
C

#include "process.h"
#include "scheduler.h"
#include "alloc.h"
extern int task1(void);
extern int task2(void);
int main(void) {
init_allocator();
ProcessTable *ptable;
create_process_table(&ptable);
create_process(ptable, task1);
create_process(ptable, task2);
run(ptable);
}