Journal of Information Processing
Online ISSN : 1882-6652
ISSN-L : 1882-6652
ComposableThreads: Rethinking User-level Threads with Composability and Parametricity in C++
Wataru EndoShigeyuki SatoKenjiro Taura
著者情報
ジャーナル フリー

2022 年 30 巻 p. 269-282

詳細
抄録

User-level threading or task-parallel systems have been developed over decades to provide efficient and flexible threading features missing from kernel-level threading for both parallel and concurrent programming. Some of the existing state-of-the-art user-level threading libraries provide interfaces to customize the implementation of thread scheduling to adapt to different workloads from both applications and upper-level systems. However, most of them are typically built as huge sets of monolithic components which achieve customizability with additional costs via concrete C APIs. We have noticed that the zero-overhead abstraction of C++ is beneficial for assembling flexible user-level threading in a clearer manner. To demonstrate our ideas, we have implemented a new user-level threading library ComposableThreads which provides customizability while minimizing the interfacing costs. We show that the users can pick up, insert, or replace the individual classes of ComposableThreads for their own purposes. ComposableThreads offers several characteristic abstractions to build high-level constructs of user-level threading including suspended threads (one-shot continuations) and lock delegators. We evaluate both the customizability and performance of our runtime system through the microbenchmark and application results.

著者関連情報
© 2022 by the Information Processing Society of Japan
前の記事 次の記事
feedback
Top