Skip to content

Instantly share code, notes, and snippets.

@oppahero
Created August 3, 2018 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oppahero/74e6e35eb4386890290efb27f367dbf7 to your computer and use it in GitHub Desktop.
Save oppahero/74e6e35eb4386890290efb27f367dbf7 to your computer and use it in GitHub Desktop.
//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