-
-
Save oppahero/8c68588e19dce464dd150fa779fc1d79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Cambios de cola | |
for(int i = 0; i < NUM_QUEUES ; i++){ | |
//Si el tiempo de Quantum de la cola es igual al tiempo en ejecucion por el proceso en cpu | |
//Y si el T que ha estado ejecutandose es distinto al tiempo de ejecución asignado en un inicio | |
if ( AdministradorColas.getProcesador().getCola() == (i+1) && | |
tiempoEjecucion == queues[i] && AdministradorColas.getProcesador().getTEjecucion() != tiempoEjecucion){ | |
tiempoEjecucion=0; | |
AdministradorColas.gestionarEvento(); //Pasara a la cola inferior | |
AdministradorColas.setIdProcesador(); | |
continue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment