Whenever you're ready, walk me through how you'd approach this.
Design a priority-wise process scheduler and write the class for priorities 1 to 10.
Define a practical class interface that supports adding processes, selecting the next process, and handling completion or cancellation. Clarify tie-breaking for processes with equal priority, whether lower or higher numbers represent higher priority, expected complexity, and behavior when no process is runnable. Discuss how the design could support concurrency safely without changing the scheduling contract.