Real-time application execution tasks come from an number of model features, including:
Each sample rate group in the model
Function-call subsystem block connected to interrupt from an I/O module block
Function-call subsystem block connected to a Thread Trigger block
The RTOS task scheduler automates scheduling of tasks for all sample rates in the model. You can configure your model to influence task priority of some rate-related tasks. For more information, see Concurrent Execution on Simulink® Real-Time™.