In this video I have explained how Subsystems get executed when priorities are not defined. It also explains how to define priority. It shows the effect of all this in code Generation.
Auto Code Generation Tutorial -
• Simulink Tutorial - 21 - Code Generation F...