The following diagram shows how scheduled tasks are checked system internally.
The exact order in which tasks are processed depends on the particular settings that are explained in more detail in the document Executing Objects.
See also:
Schedule Logic