Preparing your design workspace

Loading the problem and your saved attempt…

Design a Priority and Arrival-Time Scheduler

Model a nonpreemptive single-core scheduler with deterministic eligibility, priority selection and explicit lifecycle commands.

For this exercise, assume a design-only single-core nonpreemptive scheduler simulator. Admit each process once with a unique ID, arrival time and integer priority; retain its admission order. On dispatch, only processes with arrival time at or before now are eligible.

Prefer smaller priority, then earlier arrival, then earlier admission. A running process occupies the core until explicit completion; dispatch while occupied returns Busy. If no eligible process exists it returns Idle. Pending processes, including future arrivals, can cancel; running and terminal processes cannot.

Every command receives a nondecreasing explicit time, and rejected commands change no state. Completion does not automatically dispatch. No process code execution, durations, preemption, background timers, resource allocation or aging is required.

In the follow-up, change only a ready process priority while preserving its arrival and admission fields. Design objects, interfaces, data structures and interactions; no code is required.