Scheduling updates to the kernel. Sched() function now is single point for

policy. Actual policy not yet implemented.

PM calculates nice values for processes in boot image.

IS debug dumps improved (Shift+F1-F4).
This commit is contained in:
Jorrit Herder
2005-08-22 15:14:11 +00:00
parent a17d7c827b
commit 872687ddfc
12 changed files with 142 additions and 103 deletions

View File

@@ -51,8 +51,12 @@ register message *m_ptr; /* pointer to request message */
rpc->p_user_time = 0; /* set all the accounting times to 0 */
rpc->p_sys_time = 0;
rpc->p_sched_ticks /= 2; /* parent and child have to share quantum */
rpp->p_sched_ticks /= 2;
/* Parent and child have to share the quantum that the forked process had,
* so that queued processes do not have to wait longer because of the fork.
* If the time left is odd, the child gets an extra tick.
*/
rpc->p_ticks_left = (rpc->p_ticks_left + 1) / 2;
rpp->p_ticks_left = rpp->p_ticks_left / 2;
/* If the parent is a privileged process, take away the privileges from the
* child process and inhibit it from running by setting the NO_PRIV flag.