X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f552823ca5288f68128995ed503d0cb0f974d455..48b4a227035048fdebcd32532deb7a857c6199ac:/lunaix-os/includes/lunaix/sched.h diff --git a/lunaix-os/includes/lunaix/sched.h b/lunaix-os/includes/lunaix/sched.h new file mode 100644 index 0000000..a0778a3 --- /dev/null +++ b/lunaix-os/includes/lunaix/sched.h @@ -0,0 +1,15 @@ +#ifndef __LUNAIX_SCHEDULER_H +#define __LUNAIX_SCHEDULER_H + +#define SCHED_TIME_SLICE 1000 + +struct scheduler { + struct proc_info* _procs; + int procs_index; + unsigned int ptable_len; +}; + +void sched_init(); +void schedule(); + +#endif /* __LUNAIX_SCHEDULER_H */