scheduler: continue rework

This commit is contained in:
Matheus
2025-08-20 22:00:25 -03:00
parent 5098c09f26
commit 136c86354c
26 changed files with 348 additions and 154 deletions
+1
View File
@@ -45,6 +45,7 @@ thread_t *sched_newthread(void *ip, size_t kstacksize, int priority, proc_t *pro
EVENT_INITHEADER(&thread->signals.waitpendingevent);
memset(&thread->metrics, 0, sizeof(thread->metrics));
thread->metrics.sleep_time_avg_us = 1; // to prevent a division by 0 when the thread first gets scheduled
thread->class = THREAD_CLASS_TIMESHARE;
return thread;
}