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: fstat now handle symbolic link
[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 618c32484e849245fe3378f7e73c077452e9355b..7cb313025e3860cb7bd9871e6f5cdb57f7ee25f1 100644
(file)
--- a/
lunaix-os/includes/lunaix/sched.h
+++ b/
lunaix-os/includes/lunaix/sched.h
@@
-1,15
+1,25
@@
#ifndef __LUNAIX_SCHEDULER_H
#define __LUNAIX_SCHEDULER_H
#ifndef __LUNAIX_SCHEDULER_H
#define __LUNAIX_SCHEDULER_H
-#define SCHED_TIME_SLICE
2
00
+#define SCHED_TIME_SLICE
3
00
-struct scheduler {
- struct proc_info* _procs;
+#define PROC_TABLE_SIZE 8192
+#define MAX_PROCESS (PROC_TABLE_SIZE / sizeof(ptr_t))
+
+struct scheduler
+{
+ struct proc_info** _procs;
int procs_index;
int procs_index;
-
unsigned
int ptable_len;
+ int ptable_len;
};
};
-void sched_init();
-void schedule();
+void
+sched_init();
+
+void
+schedule();
+
+void
+sched_yieldk();
#endif /* __LUNAIX_SCHEDULER_H */
#endif /* __LUNAIX_SCHEDULER_H */