To improve the performance of your real-time application, consider the following changes:
Change a single-rate model that is inherently multirate to a multirate model.
Use a multicore target computer, and then set the tasking mode to multitasking.
Determine the lower limit on sample time that does not produce a CPU overload.
Configure a real-time application for profiling, run it with the profiling functions, and retrieve the results. Evaluate the results for potential improvements in the task and core distribution of the model.
For an inherently single-rate model, execute the real-time application on a multicore target computer with polling mode.