Ignore:
Timestamp:
Jun 6, 2013, 1:41:00 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8b222be
Parents:
8f42092
git-author:
Sebastian Huber <sebastian.huber@…> (06/06/13 13:41:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/14/13 14:26:08)
Message:

scheduler: New simple SMP scheduler implementation

The new Simple SMP Scheduler allocates a processor for the processor
count highest priority ready threads. The thread priority and position
in the ready chain are the only information to determine the scheduling
decision. Threads with an allocated processor are in the scheduled
chain. After initialization the scheduled chain has exactly processor
count nodes. Each processor has exactly one allocated thread after
initialization. All enqueue and extract operations may exchange threads
with the scheduled chain. One thread will be added and another will be
removed. The scheduled and ready chain is ordered according to the
thread priority order. The chain insert operations are O(count of ready
threads), thus this scheduler is unsuitable for most real-time
applications.

The thread preempt mode will be ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadstartmultitasking.c

    r8f42092 ra936aa49  
    4444  _Thread_Dispatch_necessary = false;
    4545
     46  #if defined(RTEMS_SMP)
     47    _Thread_Executing->is_executing = false;
     48    _Thread_Heir->is_executing = true;
     49  #endif
     50
    4651  _Thread_Executing = _Thread_Heir;
    4752
Note: See TracChangeset for help on using the changeset viewer.