Work

Featherweight Thr eads for Communication

Year: 2011
Type: article
Abstract: Message-passing is an attractive thread coordination mechanism because it cleanly delineates points in an execution when threads communicate, and unifies synchronization and communication. To enable greater performance, asynchronous or non-blocking extensions are usually provided, that allow senders and receivers to proceed even if a matching partner is unavailable. However, realizing the potential of these techniques in practice has remained a difficult endeavor due to the associated runtime overheads. We introduce parasitic threads, a novel mechanism for expressing asynchronous computation, aimed at reducing runtime overheads. Parasitic threads are implemented as raw stack frames within the context of its host -a lightweight thread. Parasitic threads are self-scheduled and migrated based on their communication patterns. This avoids scheduling overheads and localizes interaction between parasites. We describe an implementation of parasitic threads and illustrate their utility in building efficient asynchronous primitives. We present an extensive evaluation of parasitic threads in a large collection of benchmarks, including a full fledged web-server. Evaluation is performed on two garbage collection schemes -a stopthe-world garbage collector and a split-heap parallel garbage collector -and shows that parasitic threads improve the performance in both cases.
Language: English
Open Access status: green
OpenAlex ID: W1598089404
FWCI:
Cites: 20
Cited by:
Related to: 9