-
-
Save oppahero/a093095b594483a0376b36eec4a40ad2 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
void *gestionarCola1(void* threadid) { | |
struct Planificador &value = *((struct Planificador *)threadid); | |
Proceso n = value.getPopCola1(); //El proceso pasa al procesador | |
cout<<" ATENDIENDO NUEVO PROCESO EN CPU. ID: "<<value.getPopCola1().getId() <<endl; | |
n.setEstado("Ejecutandose"); //Cambia su estado | |
n.imprimirDatos(); //Imprimimis datos del proceso en CPU | |
cout<<endl; | |
value.cola1.pop(); //Ya no esta en cola | |
value.setProceso(n); | |
pthread_exit(NULL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment