-
-
Save oppahero/74e6e35eb4386890290efb27f367dbf7 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
//El proceso sale del cpu | |
void *gestionarPlanificador(void* threadid) { | |
struct Planificador value = *((struct Planificador *)threadid); | |
value.Procesador.setEstado("Terminado"); | |
cout << "Proceso ID (" << value.Procesador.getId()<< ") ESTADO: "<< value.Procesador.getEstado() << endl; | |
cout << "Proceso ID (" << value.Procesador.getId()<< ") HA TERMINADO SU EJECUCION TOTAL. LIBERADO RECURSOS" << endl; | |
value.getProcesador().setEstado("Terminado"); | |
value.getProcesador().setId(); | |
pthread_exit(NULL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment