Function ksched::task::preempt_point[][src]

pub async fn preempt_point()
Expand description

Inject a preemptable point for fair scheduling and real-time scheduling.

If you have NCPU local executors and preemptable points are carefully injected into your code so that the time consumed between any two sequential preemptable points is O(1), then for each executor, the real-time tasks with highest priority is guaranteed to be waken up in O(NCPU).