Compare commits

...

1 Commits
master ... ass3

Author SHA1 Message Date
BAREEDU SAI SANDEEP SANDEEP 25ea521535 PID swapped working 2020-02-21 01:15:23 +05:30
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.