소스 검색

ahora el scheduler rr *no* tiene memoria despues de IO

David 10 년 전
부모
커밋
db1c0e48e0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      sched_rr.cpp

+ 1 - 0
sched_rr.cpp

@@ -63,6 +63,7 @@ int SchedRR::tick(int cpu, const enum Motivo m) {
 	case BLOCK:
 		switch_process = 1;
 		p_map[cur_pid].state = BLOCKED;
+		p_map[cur_pid].quantum_count = 0;
 		break;
 	case EXIT:
 		p_map.erase(cur_pid);