10ms Round Robin scheduler (blank processes)

This commit is contained in:
2026-02-01 11:25:43 +01:00
parent c46157fad0
commit 4a90de9521
8 changed files with 67 additions and 15 deletions

View File

@@ -188,7 +188,12 @@ struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
case 32:
//DEBUG("Timer Interrupt");
ticks++;
scheduler_schedule();
if (ticks % SCHEDULER_QUANTUM == 0)
{
CLEAR_INTERRUPTS;
scheduler_schedule();
SET_INTERRUPTS;
}
// Send an EOI so that we can continue having interrupts
outb(0x20, 0x20);
break;