|
|
@@ -8,7 +8,7 @@ SchedRR::SchedRR(vector<int> argn) {
|
|
|
nucleos = argn[1];
|
|
|
quantums = new uint[nucleos];
|
|
|
|
|
|
- for (int i = 0; i < nucleos; i++) {
|
|
|
+ for (uint i = 0; i < nucleos; i++) {
|
|
|
quantums[i] = argn[i + 2];
|
|
|
}
|
|
|
|
|
|
@@ -54,7 +54,7 @@ int SchedRR::next_pid(uint cur_pid) {
|
|
|
|
|
|
int SchedRR::tick(int cpu, const enum Motivo m) {
|
|
|
uint switch_process = 0;
|
|
|
- uint cur_pid = current_pid(cpu);
|
|
|
+ int cur_pid = current_pid(cpu);
|
|
|
|
|
|
switch (m) {
|
|
|
case TICK:
|