X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/48b4a227035048fdebcd32532deb7a857c6199ac..8357bda627bdf02c1b69eecf27993182239fb463:/lunaix-os/includes/lunaix/sched.h?ds=sidebyside diff --git a/lunaix-os/includes/lunaix/sched.h b/lunaix-os/includes/lunaix/sched.h index a0778a3..69019f3 100644 --- a/lunaix-os/includes/lunaix/sched.h +++ b/lunaix-os/includes/lunaix/sched.h @@ -1,15 +1,22 @@ #ifndef __LUNAIX_SCHEDULER_H #define __LUNAIX_SCHEDULER_H -#define SCHED_TIME_SLICE 1000 +#define SCHED_TIME_SLICE 300 -struct scheduler { +struct scheduler +{ struct proc_info* _procs; int procs_index; unsigned int ptable_len; }; -void sched_init(); -void schedule(); +void +sched_init(); + +void +schedule(); + +void +sched_yield(); #endif /* __LUNAIX_SCHEDULER_H */