Skip to content

Commit

Permalink
round robin working
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruvi-Lodhavia committed Nov 22, 2020
1 parent f3ad8b9 commit ad15ab2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,14 +603,18 @@ mlfq(struct proc **q_current,struct proc **q_next,int *current, int *next,struct
(*current)--;

}
else if(p->state == RUNNABLE)
{
i--;
//cprintf("process %s: pid :%d of priority: %d after ticks: %d \n ",p->name,p->pid,p->priority,p->myticks[p->priority]);
}
// else
// {
// cprintf("process %s: pid :%d of priority: %d after ticks: %d \n ",p->name,p->pid,p->priority,p->myticks[p->priority]);
//
// goto rerun;
// }

// i++;

// i++;
}
}

Expand Down

0 comments on commit ad15ab2

Please sign in to comment.