PID swapped working
This commit is contained in:
parent
67a9e8efa1
commit
25ea521535
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -319,6 +319,12 @@ static int schedule_process(struct schedproc * rmp, unsigned flags)
|
|||
else
|
||||
new_cpu = -1;
|
||||
|
||||
//processes are swapped here
|
||||
if (rmp->priority >= 7 && rmp->max_priority == 7)
|
||||
{
|
||||
printf("MINIX: PID %d swapped in\n", _ENDPOINT_P(rmp->endpoint));
|
||||
}
|
||||
|
||||
if ((err = sys_schedule(rmp->endpoint, new_prio,
|
||||
new_quantum, new_cpu)) != OK) {
|
||||
printf("PM: An error occurred when trying to schedule %d: %d\n",
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue