arXiv:2610.11006cs.DSOct 2026

Manuscript Offprint

arXiv:2610.11006

Non-Clairvoyant Scheduling is Hard Even for Trees

Kunal Agrawal, Owen Druzgal, Milind Prabhu, Jinhao Zhao

Abstract

We study online scheduling of parallel jobs on m identical processors. Jobs arrive over time, and each job J is modeled as a directed acyclic graph (DAG) whose vertices are subjobs. Each subjob requires one unit of processing on a single processor, and an edge u→vu \to v requires u to complete before v can be processed. The goal is to design an online algorithm that minimizes the maximum flow time, i.e., the maximum time between the arrival and completion of any job.

We focus on non-clairvoyant online algorithms, which do not know a job's DAG when it arrives. Instead, the DAG is revealed online: a subjob becomes known only when it is ready, that is, after all its predecessors have completed. First-In-First-Out (FIFO) is a natural non-clairvoyant algorithm that prioritizes ready subjobs from earlier-arriving jobs. Agrawal, Moseley, Newman, and Pruhs (SPAA 2024) [6] showed that FIFO has competitive ratio Ω(log⁡m)\Omega(\log m) even when every job is an out-tree. They further showed that FIFO is O(log⁡m)O(\log m)-competitive in several natural settings and asked whether this bound holds in general. They also raised the question of whether a different non-clairvoyant algorithm exists that is O(1)O(1)-competitive.

We answer both questions in the negative by proving a lower bound of Ω(min⁡{m,opt})\Omega(\min\{m, \text{opt}\}) for every non-clairvoyant online algorithm. Here, opt denotes the maximum flow time of an optimal offline schedule. In particular, every non-clairvoyant algorithm has competitive ratio Ω(m)\Omega(m) on some instance with opt ≥m\geq m. The lower bound holds even when every job is an out-forest.

We complement these lower bounds with an asymptotically optimal non-clairvoyant algorithm. A simple argument shows that FIFO is O(m)O(m)-competitive. However, FIFO can have competitive ratio Ω(m)\Omega(m) even when opt = O(1)O(1). To handle instances with small opt, we design a new Small-Frontier-First algorithm that is O(opt)O(\text{opt})-competitive. Combining the two algorithms yields an O(min⁡{m,opt})O(\min\{m, \text{opt}\})-competitive non-clairvoyant algorithm.

1 Introduction

We consider the fundamental problem of scheduling parallel programs which arrive online on a parallel machine with m identical processors. Each job is modeled as a directed acyclic graph (DAG) where vertices represent tasks (sequential strands of instructions) and edges represent dependences between these tasks. This is a

Owen Druzgal

University of Michigan

Ann Arbor, Michigan, USA

odruzgal@umich.edu

Jinhao Zhao

Washington University in St. Louis

St. Louis, Missouri, USA

jinhaoz@wustl.edu

natural model for a large class of parallel programs; for instance, programs that are constructed using fork-join parallelism (also called dynamic multithreading) which is supported by parallel programming languages such as Cilk dialects [12], OpenMP [24], and Intel's TBB [26]. In this setting, the structure of the DAG is often not known in advance and is revealed online as the job is processed. In particular, a vertex is ready to be executed when all its predecessors have been executed and the scheduler only finds out about the existence of a vertex when it is ready. Therefore, the scheduler must be non-clairvoyant; it doesn't know anything about the jobs when they arrive; vertices are revealed when they become ready and the scheduler must proceed with this limited information.

We study the setting where these parallel jobs arrive online over time, the scheduler must operate non-clairvoyantly, and the goal is to minimize the maximum flow time or maximum latency — that is, the maximum time between the arrival of a job and its completion. Minimizing maximum flow time is a standard quality of service metric since it optimizes for the worst-case quality of service over all jobs. The problem of minimizing maximum flow time has been studied for sequential jobs [7] and parallel jobs in several different models of parallelism [4, 21, 25].

Intuitively, a scheduler for this metric should “prioritize” old jobs and this intuition turns out to be the correct one for most settings. A First-In-First-Out (FIFO) scheduler operationalizes this intuition; it schedules all ready vertices (tasks) of the oldest job first and then the vertices of the second oldest job and so on until all m processors are busy or it runs out of ready vertices. For sequential jobs (each job is a chain of vertices) on a single machine, FIFO is optimal [9], while for sequential jobs on m identical processors, FIFO is (3−2/m)(3 - 2/m)-competitive [9, 20]. Similarly, for fully parallelizable jobs, it is also optimal on m identical processors.

The problem of minimizing maximum flow for parallel DAG jobs was first studied in [4], where the authors show that FIFO is O(1)O(1)-competitive given (1+ϵ)(1 + \epsilon) times the speed of the optimal algorithm. The question of how to optimize maximum flow on DAGs without speed augmentation was studied in [6] and the authors provide some partial answers. First, in a somewhat counterintuitive result, they show that FIFO is Ω(log⁡m)\Omega(\log m)-competitive even on jobs that can be represented as out-trees, which form a simpler class than general DAGs. In the same paper, they provide an O(1)O(1)-competitive algorithm for out-trees if the entire structure of the tree is revealed to the scheduler when the job arrives. They also provide a somewhat positive result for FIFO, namely, for a restricted setting of batched jobs, FIFO is O(log⁡(m opt))O(\log(m \text{ opt}))-competitive, where opt is the

∗^{*}Supported in part by NSF grants 2216971, 2106699, and 2107280.

†^{\dagger}Supported by NSF award CCF-2327011.

maximum flow time provided by the optimal algorithm. However, the best achievable competitive ratio for non-clairvoyant scheduling of DAGs (or even trees) without additional speed remained completely open.

In this paper, we resolve this important open question, mostly in the negative direction. Our main result shows that no non-clairvoyant scheduler can achieve a competitive ratio asymptotically better than min⁡{m,opt}\min \{m,\mathrm{opt}\}, even for trees. The main theorem of the paper is the following:

THEOREM 1. Every deterministic online non-clairvoyant scheduler and every randomized online non-clairvoyant scheduler against an oblivious adversary have a competitive ratio of Ω(min⁡{m,opt})\Omega(\min \{m,\mathrm{opt}\}) even for trees.1^1

This result is quite surprising. Maximum flow is generally an easier objective than other quality of service objectives such as average flow time and stretch. For instance, for sequential jobs on a single machine, minimizing average flow time non-clairvoyantly (without knowing the processing times of each job when it arrives) has competitive ratio lower bounds of Ω(n1/3)\Omega(n^{1/3}) for deterministic non-clairvoyant schedulers and Ω(log⁡n)\Omega(\log n) for randomized schedulers against an oblivious adversary, where nn is the number of jobs [22].2^2 Moreover, on m≥2m\geq 2 identical machines, even when processing times are revealed on release, every deterministic or randomized online scheduler has competitive ratio lower bounds of Ω(log⁡(n/m))\Omega(\log (n/m)) and Ω(log⁡P)\Omega(\log P), where PP is the ratio of the largest to the smallest processing time [19]. Thus, without speed augmentation, no constant competitive ratio is possible for average flow time even for sequential jobs. In contrast, FIFO is constant-competitive without speed for maximum flow [9, 20]. Therefore, a priori one might imagine that some non-clairvoyant algorithm could work for maximum flow without speed, at least for jobs with a simple dependence structure like trees or forests.

In addition, in [6], the authors show an O(log⁡(mopt))O(\log (m\mathrm{opt})) upper bound for FIFO for batched arrivals of jobs. Say that opt is the maximum flow provided by the optimal scheduler. If jobs only arrive at intervals of opt—that is, sets of jobs arrive at time 0, opt, 2 opt, ..., with no arrivals in between—then FIFO provides a competitive ratio of O(log⁡(mopt))O(\log (m\mathrm{opt})) for general DAG jobs (not just trees). We expected that this result could generalize to nonbatched arrivals since one can delay the arrivals of jobs to the next multiple of opt by increasing the maximum flow time of the optimal algorithm only by a factor of 2. The authors of the paper indicate that their analysis techniques do not generalize to the nonbatched setting and one would need additional insights to generalize the result. Our lower bound shows that, in fact, these results cannot generalize. It is counterintuitive, however, that batched arrivals give an exponential advantage to FIFO in terms of the achievable competitive ratio.

We also prove matching upper bounds. We design a new non-clairvoyant scheduler that is a combination of FIFO (which by itself provides a competitive ratio of O(m)O(m)) and an algorithm called Small-Frontier-First which tries to execute bottleneck vertices in DAGs in order to reveal parallelism quickly (and by itself achieves a competitive ratio of O(opt)O(\mathrm{opt})) and show the following result.

THEOREM 2. There is a deterministic non-clairvoyant algorithm for online DAG scheduling with competitive ratio O(min⁡{m,opt})O(\min \{m,\mathrm{opt}\}).

FIFO alone does not attain the preceding guarantee. Indeed, although FIFO is O(m)O(m)-competitive, it is not O(opt)O(\mathrm{opt})-competitive. In particular, there are instances with opt=O(1)\mathrm{opt} = O(1) on which FIFO has competitive ratio Ω(m)\Omega(m).

THEOREM 3. FIFO provides a competitive ratio of Ω(m)\Omega(m) even if opt (the maximum flow time provided by the optimal scheduler) is a constant.

Finally, we return to the batched-arrival setting discussed above, in which jobs arrive only at times 0, opt, 2 opt, ..., and determine its optimal competitive ratio. Using essentially the argument of Agrawal, Moseley, Newman, and Pruhs [6], but with a more careful analysis, we sharpen their O(log⁡(mopt))O(\log (m\mathrm{opt})) upper bound to O(log⁡opt)O(\log \mathrm{opt}) and prove a matching lower bound.

THEOREM 4. The optimal competitive ratio for non-clairvoyant online scheduling in the batched-arrival setting is Θ(min⁡{m,log⁡opt})\Theta(\min \{m,\log \mathrm{opt}\}). FIFO achieves the upper bound.

Together with previous work, this reveals a sharp threshold in the arrival spacing. Let gg denote the spacing between consecutive batches.

Arrival SpacingCompetitive RatioSource
g≤(1−ϵ)g \leq (1 - \epsilon) opt for any fixed ϵ>0\epsilon > 0Θ(min⁡{m,opt})\Theta(\min\{m, \text{opt}\})This paper
g=optg = \text{opt}Θ(min⁡{m,log⁡opt})\Theta(\min\{m, \log \text{opt}\})This paper
g≥(1+ϵ)g \geq (1 + \epsilon) opt for any fixed ϵ>0\epsilon > 0Θ(1)\Theta(1)FIFO with speed augmentation [4]

Thus, the table reveals a somewhat surprising phenomenon: as the arrival spacing crosses opt, the best achievable competitive ratio changes from linear in opt below the threshold, to logarithmic at the threshold, and to constant above it.

References (22)