|
@@ -51,7 +51,7 @@ int SchedRSJF::next_process(int cur_pid) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int SchedRSJF::tick(int core, const enum Motivo m) {
|
|
int SchedRSJF::tick(int core, const enum Motivo m) {
|
|
|
- uint cur_pid = current_pid(core);
|
|
|
|
|
|
|
+ int cur_pid = current_pid(core);
|
|
|
|
|
|
|
|
if (cur_pid == IDLE_TASK || m == EXIT) {
|
|
if (cur_pid == IDLE_TASK || m == EXIT) {
|
|
|
// Caso donde m == EXIT o core IDLE
|
|
// Caso donde m == EXIT o core IDLE
|
|
@@ -77,7 +77,7 @@ int SchedRSJF::tick(int core, const enum Motivo m) {
|
|
|
} else {
|
|
} else {
|
|
|
return cur_pid; // El proceso esta corriendo
|
|
return cur_pid; // El proceso esta corriendo
|
|
|
}
|
|
}
|
|
|
- } else if (m ==BLOCK) {
|
|
|
|
|
|
|
+ } else {
|
|
|
// Proceso con estado BLOCK, no sucede en este scheduler
|
|
// Proceso con estado BLOCK, no sucede en este scheduler
|
|
|
// pero si pasa lo esperamos hasta que termine
|
|
// pero si pasa lo esperamos hasta que termine
|
|
|
return cur_pid;
|
|
return cur_pid;
|