git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
feat: device subsystem rework
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
sched.h
1
#ifndef __LUNAIX_SCHEDULER_H
2
#define __LUNAIX_SCHEDULER_H
3
4
#define SCHED_TIME_SLICE 300
5
6
#define PROC_TABLE_SIZE 8192
7
#define MAX_PROCESS (PROC_TABLE_SIZE / sizeof(ptr_t))
8
9
struct scheduler
10
{
11
struct proc_info** _procs;
12
int procs_index;
13
int ptable_len;
14
};
15
16
void
17
sched_init();
18
19
void
20
schedule();
21
22
void
23
sched_yieldk();
24
25
#endif /* __LUNAIX_SCHEDULER_H */