John Baldwin bd1d11f5dc - Store threads on sleep queues in FIFO order rather than sorted by
priority.  The sleep queues don't get updated when the priority of
  threads changes, so sleepq_signal() might not always wakeup the
  highest priority thread.  Updating the queues when thread priorities
  change cannot be easily done due to lock orders, so instead we do an
  O(n) walk of the queue for a sleepq_signal() operation instead of O(1).
  On the other hand, adding a thread to a sleep queue now goes from O(n)
  to O(1) so it ends up as an even tradeoff.  The correctness here with
  regards to priorities is actually fairly important.  msleep() gives
  interactive threads their priority "boost" after they are placed on the
  queue, but before this fix that "boost" wasn't used to determine the
  highest priority thread that sleepq_signal() awoke.
- Fix up some comments.

Inspired by:	ups, bde
2004-11-05 20:19:58 +00:00
..
2004-11-04 07:59:57 +00:00
2004-10-10 05:07:43 +00:00
2004-11-05 06:52:29 +00:00
2004-08-19 19:51:51 +00:00
2004-07-10 21:43:23 +00:00
2004-08-19 20:16:09 +00:00
2004-10-25 12:27:03 +00:00
2004-10-23 20:01:32 +00:00
2004-05-30 20:34:58 +00:00
2004-05-30 20:34:58 +00:00
2004-06-17 17:16:53 +00:00
2004-11-03 19:16:55 +00:00
2004-05-30 20:34:58 +00:00
2004-11-04 07:59:57 +00:00
2004-11-04 07:59:57 +00:00