PID swapped working

This commit is contained in:
BAREEDU SAI SANDEEP SANDEEP 2020-02-21 01:15:23 +05:30
parent 67a9e8efa1
commit 25ea521535
6 changed files with 6 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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.