Title
Parrot: a practical runtime for deterministic, stable, and reliable threads
Abstract
Multithreaded programs are hard to get right. A key reason is that the contract between developers and runtimes grants exponentially many schedules to the runtimes. We present Parrot, a simple, practical runtime with a new contract to developers. By default, it orders thread synchronizations in the well-defined round-robin order, vastly reducing schedules to provide determinism (more precisely, deterministic synchronizations) and stability (i.e., robustness against input or code perturbations, a more useful property than determinism). When default schedules are slow, it allows developers to write intuitive performance hints in their code to switch or add schedules for speed. We believe this "meet in the middle" contract eases writing correct, efficient programs. We further present an ecosystem formed by integrating Parrot with a model checker called dbug. This ecosystem is more effective than either system alone: dbug checks the schedules that matter to Parrot, and Parrot greatly increases the coverage of dbug. Results on a diverse set of 108 programs, roughly 10× more than any prior evaluation, show that Parrot is easy to use (averaging 1.2 lines of hints per program); achieves low overhead (6.9% for 55 real-world programs and 12.7% for all 108 programs), 10× better than two prior systems; scales well to the maximum allowed cores on a 24-core server and to different scales/types of workloads; and increases Dbug's coverage by 106--1019734 for 56 programs. Parrot's source code, entire benchmark suite, and raw results are available at github.com/columbia/smt-mc.
Year
DOI
Venue
2013
10.1145/2517349.2522735
SOSP
Keywords
Field
DocType
runtimes grant,prior evaluation,practical runtime,24-core server,prior system,default schedule,new contract,dbug check,source code,reliable thread,multithreaded program,code perturbation
Model checking,Suite,Computer science,Source code,Determinism,Parallel computing,Robustness (computer science),Thread (computing),Real-time computing,Schedule,Meet in the middle,Distributed computing
Conference
Citations 
PageRank 
References 
42
1.13
36
Authors
9
Name
Order
Citations
PageRank
Heming Cui120716.83
Jiri Simsa2974.88
Yi-Hong Lin3421.13
Hao Li4421.13
Ben Blum5441.49
Xinan Xu6421.13
Junfeng Yang7122669.60
Garth A. Gibson82517250.27
Randal E. Bryant992041194.64