Publication | Open Access
Cilk: An Efficient Multithreaded Runtime System
774
Citations
0
References
1996
Year
EngineeringCilk ComputationComputer ArchitectureMultithreading (Computer Architecture)Cilk Runtime SystemParallel AlgorithmsComputing SystemsParallel ComputingCritical-path LengthComputer EngineeringScheduling (Computing)Computer ScienceRuntime SystemOperating SystemsProgram AnalysisParallel Performance EvaluationScheduling (Operating Systems)Multiprocessor SystemParallel ProgrammingReal-time SystemsScheduling (Project Management)System Software
Cilk (pronounced “silk”) is a C-based runtime system for multithreaded parallel programming. In this paper, we document the efficiency of the Cilk work-stealing scheduler, both empirically and analytically. We show that on real and synthetic applications, the “work” and “critical-path length” of a Cilk computation can be used to model performance accurately. Consequently, a Cilk programmer can focus on reducing the computation's work and critical-path length, insulated from load balancing and other runtime scheduling issues. We also prove that for the class of “fully strict” (well-structured) programs, the Cilk scheduler achieves space, time, and communication bounds all within a constant factor of optimal. The Cilk runtime system currently runs on the Connection Machine CM5 MPP, the Intel Paragon MPP, the Sun Sparcstation SMP, and the Cilk-NOW network of workstations. Applications written in Cilk include protein folding, graphic rendering, backtrack search, and the ★Socrates chess program, which won second prize in the 1995 ICCA World Computer Chess Championship.