Document ID 53 : AUTOSAR_EXP_LayeredSoftwareArchitecture135
Integration and Runtime Aspects - Scheduling
Basic Scheduling Concepts of the BSW
BSW Scheduling shall
Assure correct timing behavior of the BSW, i.e., correct interaction of all BSW modules with respect to time
Data consistency mechanisms
Applied data consistency mechanisms shall be configured by the ECU/BSW integrator dependent from the configured
scheduling.
Single BSW modules do not know about
ECU wide timing dependencies
Scheduling implications
Most efficient way to implement data consistency
Centralize the BSW schedule in the BSW Scheduler configured by the ECU/BSW integrator and generated by the RTE
generator together with the RTE
Eases the integration task
Enables applying different scheduling strategies to schedulable objects
Preemptive, non-preemptive, ...
Enables applying different data consistency mechanisms
Enables reducing resources (e.g., minimize the number of tasks)
Enables interlaced execution sequences of Runnable Entities and BSW Main functions
Restrict the usage of OS functionality
Only the BSW Scheduler and the RTE shall use OS objects or OS services
(exceptions: EcuM, Complex Drivers and services: GetCounterValue and GetElapsedCounterValue of OS; MCAL
modules may enable/disable interrupts )
Rationale:
Scheduling of the BSW shall be transparent to the system (integrator)
Enables reducing the usage of OS resources (Tasks, Resources,...)
Enables re-using modules in different environments
page id: y331b