Implement SchedulerMainThread with the following characteristics
- End the thread if the Scheduler is stopped.
- Once stopped, the scheduler cannot start again.
- Pause the execution if the Scheduler is paused.
- Call Acquire Triggers based on the capacity available.
- Submit Triggers to the ThreadPool for execution.
Implement SchedulerMainThread with the following characteristics