In plain words: Scheduled Apex is Salesforce’s built-in cron scheduler—it wakes up an Apex class implementing the Schedulable interface at a specific calendar time (such as 2:00 AM every night) and typically launches a Batchable or Queueable job. Because Salesforce allows at most 5 Batch Apex jobs to actively process or prepare at the same time, the Apex Flex Queue acts as a waiting room that holds up to 100 additional batch jobs in Holding status until one of the 5 active slots opens up. In almost every enterprise Salesforce org, certain processes cannot happen while a user is waiting on a screen: nightly subscription renewal checks, territory realignments, stale-lead archiving, and ERP reconciliation runs. To automate these calendar-driven workloads, you pair two distinct platform features: Scheduled Apex (the timer that triggers at the scheduled hour) and Batch Apex backed by the Apex Flex Queue (the asynchronous processing engine and its overflow buffer...
Salesforce Basics