pub fn is_queue_stable(utilization: f64) -> boolExpand description
Whether a queue is stable: utilization strictly less than 1.0.
A queue at or above 100% utilization has, in practice, unboundedly growing wait time, because real arrivals are uneven rather than perfectly smooth. Wait time grows sharply, not gradually, as utilization approaches this threshold — treat utilization consistently near 1.0 as an early warning, not just outright instability as the only concern.
§Arguments
utilization— the resource’s utilization as a fraction (seeutilization).
§Returns
true if utilization < 1.0 (stable), false otherwise.
§Examples
use software_engineering::queueing_theory::is_queue_stable;
assert!(is_queue_stable(0.9));
assert!(!is_queue_stable(1.0));
assert!(!is_queue_stable(1.1));