Online Flow Time Minimization: Tight Bounds for Non-Preemptive Algorithms

Yutong Geng, Enze Sun, Zonghan Yang, Yuhao ZhangarXiv 2025 · DOI

Introduction

In the realm of scheduling theory, minimizing total flow time—the sum of durations between a job's arrival and its completion—is a fundamental objective for optimizing system responsiveness. While preemptive scheduling (where jobs can be paused and resumed) is well-understood, the non-preemptive setting presents a significant challenge. In this environment, a scheduler must commit to a job until completion, risking "blocking" the machine for subsequent, potentially smaller jobs. Historically, a lower bound of $\Omega(n)$ for a single machine suggested that little could be done to improve upon simple greedy strategies. This paper breaks that barrier by exploring multi-machine environments, randomization, and the "kill-and-restart" model.

The Challenge of Non-Preemption

The difficulty of online non-preemptive scheduling stems from the lack of future knowledge. A scheduler might start a massive job just before a burst of tiny jobs arrives. Without the ability to preempt, those tiny jobs must wait, leading to a total flow time that scales linearly with the number of jobs $n$. For decades, the $O(n)$ competitive ratio was seen as a fundamental limit for deterministic algorithms on a single machine. This paper asks whether multiple machines or randomization can overcome this bottleneck.

Methodology: Rank-Based Partitioning

The authors introduce a novel Online Rank-Based Partitioning Framework to navigate these constraints. Unlike traditional offline algorithms that partition jobs based on absolute size thresholds, this framework uses relative rank.

  1. Dynamic Classification: Jobs are ranked by their processing times. At any given time, the $k$ largest jobs are classified as "large," while the rest are "small."
  2. Proxy Jobs: To maintain stability in the analysis as jobs change rank (e.g., a large job becomes small as even larger jobs arrive), the authors use "proxy jobs." These virtual entities represent the remaining work of reclassified jobs, allowing for a consistent mathematical treatment.
  3. NSJF for Small Jobs: The framework employs Non-Preemptive Shortest Job First (NSJF) for small jobs. The authors prove that NSJF remains robust even when machines are intermittently blocked by larger jobs.
  4. Randomized Delay: To further mitigate the risk of blocking, the randomized algorithm introduces a "patience" delay before starting large jobs, effectively hedging against the immediate arrival of high-priority small jobs.

Theoretical Results and Tight Bounds

The paper's primary impact lies in establishing tight theoretical bounds across various models, effectively mapping the landscape of non-preemptive scheduling.

Single Machine Performance

On a single machine, the paper confirms the difficulty of the problem but provides nuance. While deterministic algorithms are stuck at $\Omega(n)$, randomization allows for a significant improvement to $\Theta(\sqrt{n})$. Interestingly, the "kill-and-restart" model—where a job can be aborted and restarted from the beginning—offers little help on a single machine, as shown in the table below.

Summary of competitive ratios for a single machine ($n$ jobs).

The Multi-Machine Advantage

The most striking results appear in the multi-machine setting ($m \ge 2$). Here, the ability to distribute jobs across multiple processors allows algorithms to avoid total system blockage. The authors show that both randomized and kill-and-restart algorithms achieve a competitive ratio of $\Theta(\sqrt{n/m})$.

Summary of competitive ratios for $m$ machines and $n$ jobs.

Key Insights

  • The Power of $m \ge 2$: Moving from one machine to two or more creates a "safety valve." Even if one machine is blocked by a large job, others remain available, which dramatically lowers the competitive ratio.
  • Kill-and-Restart as a Hybrid: The paper identifies a sharp transition for the kill-and-restart model. It is nearly useless on a single machine but becomes as powerful as full randomization in multi-machine environments.
  • Offline Improvements: Surprisingly, the techniques developed for the online setting also improved the best-known offline approximation algorithm, removing a logarithmic factor and achieving an $O(\sqrt{n/m})$ ratio.

Conclusion and Future Directions

This work provides the first tight bounds for non-preemptive flow time minimization in the multi-machine setting. By replacing absolute size thresholds with rank-based partitioning, the authors have bridged a long-standing gap in scheduling theory. Future work remains in closing the gap for settings where the total number of jobs $n$ is unknown, and extending these results to non-identical machine models. Additionally, the "non-clairvoyant" setting, where job sizes are unknown until completion, remains an open frontier for flow time optimization.

Summary updated

BibTeX
@misc{geng2025online,
  author = {Yutong Geng and Enze Sun and Zonghan Yang and Yuhao Zhang},
  title = {{Online Flow Time Minimization: Tight Bounds for Non-Preemptive Algorithms}},
  year = {2025},
  eprint = {2511.03485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.03485},
}
Figure