haiku/headers
Michael Lotz 152132f08a mmlr+anevilyak:
* Keep track of the currently running threads.
* Make use of that info to decide if a thread that becomes ready should preempt
  the running thread.
* If we should preempt we send the target CPU a reschedule message.
* This preemption strategy makes keeping track of idle CPUs by means of a bitmap
  superflous and it is therefore removed.
* Right now only other CPUs are preempted though, not the current one.
* Add missing initialization of the quantum tracking code.
* Do not extend the quantum of the idle thread based quantum tracking as we want
  it to not run longer than necessary. Once the preemption works completely
  adding a quantum timer for the idle thread will become unnecessary though.
* Fix thread stealing code, it did missed the last thread in the run queue.
* When stealing, try to steal the highest priority thread that is currently
  waiting by taking priorities into account when finding the target run queue.
* Simplify stealing code a bit as well.
* Minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 03:19:17 +00:00
..
build Added ENOATTR. 2009-08-15 21:20:05 +00:00
compatibility * Moved termcap.h to headers/libs/termcap/, where it belongs. 2009-08-17 21:13:51 +00:00
cpp Since wchar support now works, the wstring typedef should now also be safe. 2009-07-29 14:09:43 +00:00
glibc * merged 32bit-wchar_t branches of buildtools and haiku back into 2009-07-07 10:30:09 +00:00
legacy/network setsockopt and getsockopt use int as others functions 2006-06-23 14:19:11 +00:00
libs Added missing include statements to fix build in case DBG is defined. 2009-08-18 07:19:54 +00:00
os * reordered members of BTextView to be compatible with R5 again, 2009-08-16 17:02:47 +00:00
posix Defining architecture dependent endian constants for arch mipsel. 2009-08-17 15:12:13 +00:00
private mmlr+anevilyak: 2009-08-19 03:19:17 +00:00
tools * fix gcc4 build of cppunit library by explicitly spelling out std:: in 2009-05-02 19:04:52 +00:00