git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: The waitpid family!
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
sched.h
diff --git
a/lunaix-os/includes/lunaix/sched.h
b/lunaix-os/includes/lunaix/sched.h
index a0778a39faf7d53f848ff05eb8caf61b21bd23f5..69019f3a7a3c92cc796fd6e79010a4c98415f613 100644
(file)
--- 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
#ifndef __LUNAIX_SCHEDULER_H
#define __LUNAIX_SCHEDULER_H
-#define SCHED_TIME_SLICE
10
00
+#define SCHED_TIME_SLICE
3
00
-struct scheduler {
+struct scheduler
+{
struct proc_info* _procs;
int procs_index;
unsigned int ptable_len;
};
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 */
#endif /* __LUNAIX_SCHEDULER_H */