Somehow, the system doesn't run that well when the scheduler skips only rarely; I'm not
yet sure what is causing this, but until I find the time to look into it (or someone else as part of GSoC), raising the limit helps. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -204,8 +204,8 @@ scheduler_reschedule(void)
|
||||
if (nextThread->queue_next && nextThread->queue_next->priority == B_IDLE_PRIORITY)
|
||||
break;
|
||||
|
||||
// skip normal threads sometimes (roughly 4%)
|
||||
if (_rand() > 0x500)
|
||||
// skip normal threads sometimes (roughly 16%)
|
||||
if (_rand() > 0x1500)
|
||||
break;
|
||||
|
||||
// skip until next lower priority
|
||||
|
||||
Reference in New Issue
Block a user