Rewrite of process scheduling:

- current and maximum priority per process;
- quantum size and current ticks left per process;
- max number of full quantums in a row allow
  (otherwise current priority is decremented)
This commit is contained in:
Jorrit Herder
2005-06-30 15:55:19 +00:00
parent ebd38d9a92
commit bac6068857
15 changed files with 235 additions and 177 deletions

View File

@@ -27,6 +27,10 @@
/* How long should the process names be in the kernel? */
#define P_NAME_LEN 8
/* Scheduling quantum. Number of ticks before preemption. */
#define SCHED_MILLISEC 100 /* rate to call scheduler */
#define SCHED_TICKS (SCHED_MILLISEC*HZ/1000) /* ticks per schedule */
/* How many bytes should the circular buffer for kernel diagnostics. */
#define KMESS_BUF_SIZE 256