proc.c
////give scheduleer next proccess to run
give scheduleer next proccess to run
give scheduleer next proccess to run
struct proc* GetReady()
{
int p=0;
for(p = 0;p < 3; p++){
if(ptable.pReadyList[p]!=0)
{
return ptable.pReadyList[p];
}
}
return 0;
}
struct proc * GetReady ( ) { int p = 0 ; for ( p = 0 ; p < 3 ; p ++ ) { if ( ptable . pReadyList [ p ] != 0 ) { return ptable . pReadyList [ p ] ; } } return 0 ; }
give scheduleer next proccess to run
give scheduleer next proccess to run
//if(ptable.pReadyList[0]==0 && ptable.pReadyList[1]==0 && ptable.pReadyList[2]==0) //return ptable.pReadyList[0];