Thread scheduling for multiprogrammed multiprocessors

被引:92
作者
Arora, NS [1 ]
Blumofe, RD [1 ]
Plaxton, CG [1 ]
机构
[1] Univ Texas, Dept Comp Sci, Austin, TX 78712 USA
基金
美国国家科学基金会;
关键词
D O I
10.1007/s00224-001-0004-z
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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-infinity, and for any number P of processes, our scheduler executes the computation in expected time O(T-1 / P-A + T-infinity 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-infinity.
引用
收藏
页码:115 / 144
页数:30
相关论文
共 38 条
  • [1] Accetta M., 1986, P SUMM 1986 USENIX C
  • [2] ALON N, 1992, PROBABILISTIC METHOD
  • [3] Arnold Ken., 1996, The Java Programming Language
  • [4] BLELLOCH GE, 1995, P 7 ACM S PAR ALG AR, P1
  • [5] Scheduling multithreaded computations by work stealing
    Blumofe, RD
    Leiserson, CE
    [J]. JOURNAL OF THE ACM, 1999, 46 (05) : 720 - 748
  • [6] BLUMOFE R. D., 1996, P 8 ANN ACM S PAR AL, P297
  • [7] Cilk: An efficient multithreaded runtime system
    Blumofe, RD
    Joerg, CF
    Kuszmaul, BC
    Leiserson, CE
    Randall, KH
    Zhou, YL
    [J]. JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 1996, 37 (01) : 55 - 69
  • [8] BLUMOFE RD, 1909, P 1998 ACM SIGMETRIC
  • [9] BLUMOFE RD, 1999, HOOD USER LEVEL THRE
  • [10] BLUMOFE RD, 1999, TR9911 U TEX AUST DE