The Power of Choice in Priority Scheduling

被引:12
作者
Alistarh, Dan [1 ,2 ]
Kopinsky, Justin [3 ]
Li, Jerry [3 ]
Nadiradze, Giorgi [2 ]
机构
[1] IST Austria, Klosterneuburg, Austria
[2] Swiss Fed Inst Technol, Zurich, Switzerland
[3] MIT, Cambridge, MA 02139 USA
来源
PROCEEDINGS OF THE ACM SYMPOSIUM ON PRINCIPLES OF DISTRIBUTED COMPUTING (PODC'17) | 2017年
基金
美国国家科学基金会; 瑞士国家科学基金会;
关键词
SYNCHRONIZATION; QUEUES;
D O I
10.1145/3087801.3087810
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Consider the following random process: we are given n queues, into which elements of increasing labels are inserted uniformly at random. To remove an element, we pick two queues at random, and remove the element of lower label (higher priority) among the two. The cost of a removal is the rank of the label removed, among labels still present in any of the queues, that is, the distance from the optimal choice at each step. Variants of this strategy are prevalent in state-of-the-art concurrent priority queue implementations. Nonetheless, it is not known whether such implementations provide any rank guarantees, even in a sequential model. We answer this question, showing that this strategy provides surprisingly strong guarantees: Although the single-choice process, where we always insert and remove from a single randomly chosen queue, has degrading cost, going to infinity as we increase the number of steps, in the two choice process, the expected rank of a removed element is O(n) while the expected worst-case cost is O(n log n). These bounds are tight, and hold irrespective of the number of steps for which we run the process. The argument is based on a new technical connection between "heavily loaded" balls-into-bins processes and priority scheduling. Our analytic results inspire a new concurrent priority queue implementation, which improves upon the state of the art in terms of practical performance.
引用
收藏
页码:283 / 292
页数:10
相关论文
共 35 条
  • [1] Afek Y, 2012, LECT NOTES COMPUT SC, V7611, P1, DOI 10.1007/978-3-642-33651-5_1
  • [2] Tight Bounds for Asynchronous Renaming
    Alistarh, Dan
    Aspnes, James
    Censor-Hillel, Keren
    Gilbert, Seth
    Guerraoui, Rachid
    [J]. JOURNAL OF THE ACM, 2014, 61 (03)
  • [3] Alistarh Dan, 2015, 20 ACM SIGPLAN S PRI
  • [4] [Anonymous], 2001, DISC
  • [5] Balanced allocations
    Azar, Y
    Broder, AZ
    Karlin, AR
    Upfal, E
    [J]. SIAM JOURNAL ON COMPUTING, 1999, 29 (01) : 180 - 200
  • [6] Basin D, 2011, LECT NOTES COMPUT SC, V6950, P475, DOI 10.1007/978-3-642-24100-0_44
  • [7] Berenbrink P., 2000, Proceedings of the Thirty Second Annual ACM Symposium on Theory of Computing, P745, DOI 10.1145/335305.335411
  • [8] On weighted balls-into-bins games
    Berenbrink, Petra
    Friedetzky, Tom
    Hu, Zengjian
    Martin, Russell
    [J]. THEORETICAL COMPUTER SCIENCE, 2008, 409 (03) : 511 - 520
  • [9] Brown T, 2014, ACM SIGPLAN NOTICES, V49, P329, DOI [10.1145/2692916.2555267, 10.1145/2555243.2555267]
  • [10] ON THE INHERENT SEQUENTIALITY OF CONCURRENT OBJECTS
    Ellen, Faith
    Hendler, Danny
    Shavit, Nir
    [J]. SIAM JOURNAL ON COMPUTING, 2012, 41 (03) : 519 - 536