MCPcopy Create free account
hub / github.com/f9micro/f9-kernel / schedule_select

Function schedule_select

kernel/sched.c:266–326  ·  view source on GitHub ↗

* Select next thread to run with PTS enforcement. * * O(1) selection: CLZ gives highest priority, return queue head. * Strict invariant: all queued threads are runnable. * * PTS Enforcement: Task j preempts task i iff π_j < γ_i * - If current thread has preemption threshold set, only threads with * priority < threshold can preempt * - Deferred threads are tracked in preempted_bitma

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

scheduleFunction · 0.85

Calls 5

clz32Function · 0.85
irq_kernel_critical_exitFunction · 0.85
thread_currentFunction · 0.85
dbg_printfFunction · 0.85

Tested by

no test coverage detected