Ignore:
Timestamp:
Sep 23, 2021, 1:02:46 PM (2 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
master
Children:
fcd65ca
Parents:
bc4a433
Message:

Changed cpu schedulig to use moving average.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/thread.cfa

    rbc4a433 r089d30c  
    2525#include "invoke.h"
    2626
     27uint64_t thread_rand();
     28
    2729//-----------------------------------------------------------------------------
    2830// Thread ctors and dtors
     
    4143        link.next = 0p;
    4244        link.ts   = -1llu;
    43         preferred = -1u;
     45        preferred = thread_rand() % cl.ready_queue.lanes.count;
    4446        last_proc = 0p;
    4547        #if defined( __CFA_WITH_VERIFY__ )
Note: See TracChangeset for help on using the changeset viewer.