This commit is contained in:
Robert Morris 2022-10-17 04:10:01 -04:00
parent 4a88273db5
commit 0802d56a9b

View file

@ -450,7 +450,8 @@ scheduler(void)
c->proc = 0;
for(;;){
// The most recent process to run may have had interrupts
// turned off; turn them on to avoid deadlock.
// turned off; enable them to avoid a deadlock if all
// processes are waiting.
intr_on();
for(p = proc; p < &proc[NPROC]; p++) {