diff options
author | Richard Braun <rbraun@sceen.net> | 2013-05-15 20:39:15 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-05-15 20:39:15 +0200 |
commit | 564fd3aefe3fcb27de4c8fc375fc10293a002fa9 (patch) | |
tree | ec7fea8fab38be69487e244debbfc559d4559149 /kern/bitmap.c | |
parent | 6db2ed31f9aaae4b54f10468dfa3d7c4ee0cba3d (diff) |
kern/thread: add comment about balancer threads
Balancer threads use their own version of thread_sleep because they have to
keep the run queue locked after pulling threads, otherwise remote balancers
might pull threads from a run queue right before a scheduling decision is
made, possibly putting the run queue in a state where only expired threads
remain.
Although this might be relaxed in the future, this is how it's currently
done, and a clear note in the main balancer function definitely helps against
breaking that part.
Diffstat (limited to 'kern/bitmap.c')
0 files changed, 0 insertions, 0 deletions