18 lines
304 B
C
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);
|
|
}
|