×

Thread scheduling for multiprogrammed multiprocessors. (English) Zbl 0978.68020

Summary: We present a user-level thread scheduler for shared-memory multiprocessors, and we analyze its performance under multiprogramming. We model multiprogramming with two scheduling levels: our scheduler runs at user-level and schedules threads onto a fixed collection of processes, while below this level, the operating system kernel schedules processes onto a fixed collection of processors. We consider the kernel to be an adversary, and our goal is to schedule threads onto processes such that we make efficient use of whatever processor resources are provided by the kernel.
Our thread scheduler is a non-blocking implementation of the work-stealing algorithm. For any multithreaded computation with work \(T_1\) and critical-path length \(T_\infty\), and for any number \(P\) of processes, our scheduler executes the computation in expected time \(O(T_1/P_A+ T_\infty P/P_A)\), where \(P_A\) is the average number of processors allocated to the computation by the kernel. This time bound is optimal to within a constant factor, and achieves linear speedup whenever \(P\) is small relative to the parallelism \(T_1/T_\infty\).

MSC:

68M20 Performance evaluation, queueing, and scheduling in the context of computer systems
68N25 Theory of operating systems
PDFBibTeX XMLCite
Full Text: DOI