Changes between Version 7 and Version 8 of scheduler
- Timestamp:
- Aug 29, 2017, 3:24:20 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
scheduler
v7 v8 4 4 5 5 There is one private scheduler per core, and ALMOS-MKH does not support thread migration: threads are assigned to a given core at thread creation, and will never be executed by another core, until thread destruction. 6 ALMOS-MKH implement a preemptive policy for time sharing between all threads assigned to given core. The <cpu_context> and <fpu_context> fields in the thread descriptor define the storage required to save (or initialize) the core registers values when the thread is not running. A fixed number of TICK periods is allocated to a running thread. The value of the TICK period (in milli-second) is defined by the CONFIG_SCHED_TICK_MS_PERIOD parameter. The number of TICKS is defined by the CONFIG_SCHED_TICK_MS_PERIODconfiguration parameter.6 ALMOS-MKH implement a preemptive policy for time sharing between all threads assigned to given core. The <cpu_context> and <fpu_context> fields in the thread descriptor define the storage required to save (or initialize) the core registers values when the thread is not running. A fixed number of TICK periods - called quantum - is allocated to a running thread. The value of the TICK period (in milli-second) is defined by the CONFIG_SCHED_TICK_MS_PERIOD parameter. The number of TICKS is defined by the CONFIG_SCHED_TICKS_PER_QUANTUM configuration parameter. 7 7 Finally, the max number of threads assigned to a given core is defined by the CONFIG_SCHED_MAX_THREADS_NR configuration parameter. 8 8