Deficit based Weighted Round Robin Scheduler

This commit is contained in:
Akshit Gaur
2026-03-22 13:00:31 +00:00
committed by Jeremy Soller
parent 74895c4f0f
commit b7dabfc3c2
10 changed files with 351 additions and 89 deletions
+4 -2
View File
@@ -33,7 +33,8 @@ impl WaitCondition {
let len = contexts.len();
while let Some(context_weak) = contexts.pop() {
if let Some(context_ref) = context_weak.upgrade() {
context_ref.write(token.token()).unblock();
// context_ref.write(token.token()).unblock();
context::wakeup_context(&context_ref);
}
}
len
@@ -46,7 +47,8 @@ impl WaitCondition {
let len = contexts.len();
for context_weak in contexts.iter() {
if let Some(context_ref) = context_weak.upgrade() {
context_ref.write(token.token()).unblock();
// context_ref.write(token.token()).unblock();
context::wakeup_context(&context_ref);
}
}
len