hain[furthest].next=0;Р}Рrun=head;Рprochain[run].state='R';Рhead=prochain[head].next;Рprochain[run].next=0;Рprint();Р}Рprisch() /*THE PROCESS WITH PRIO ALGORITHM*/Р{ while(run!=0)Р{ prochain[run].cputime+=1;Рprochain[run].priority-=3;Рprochain[run].alltime-=1;Рif(prochain[run].alltime==0)Р{ prochain[run].state='F';Рprochain[run].next=0;Рif(head!=0)Р{ run=head;Рprochain[run].state='R';Рhead=prochain[head].next;}РelseР{ prochain[0].id=prochain[run].id;Рrun=0;}Р}РelseР{ if((prochain[run].priority< prochain[head].Р priority)&&(head!=0))Р{ prochain[run].state='W';Рinsert(run);Рrun=head;Рprochain[run].state='R';Рhead= prochain[head].next;}Р}Рprint();Р}Р }Рtimesch() /*THE PROCESS WITH RR ALRORITHM*/Р{ while(run!=0)Р{ prochain[run].alltime-=1;Рprochain[run].cputime+=1;Рif(prochain[run].alltime==0)