• Home
  • Search
  • Fine-grain multithreading with minimal compiler support—a cost effective approach to implementing efficient multithreading languages
  • Cite Icon6
  • https://doi.org/10.1145/258916.258944Copy DOI Icon

Fine-grain multithreading with minimal compiler support—a cost effective approach to implementing efficient multithreading languages

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

It is difficult to map the execution model of multithreading languages (languages which support fine-grain dynamic thread creation) onto the single stack execution model of C. Consequently, previous work on efficient multithreading uses elaborate frame formats and allocation strategy, with compilers customized for them. This paper presents an alternative cost-effective implementation strategy for multithreading languages which can maximally exploit current sequential C compilers. We identify a set of primitives whereby efficient dynamic thread creation and switch can be achieved and clarify implementation issues and solutions which work under the stack frame layout and calling conventions of current C compilers. The primitives are implemented as a C library and named StackThreads. In StackThreads, a thread creation is done just by a C procedure call, maximizing thread creation performance. When a procedure suspends an execution, the context of the procedure, which is roughly a stack frame of the procedure, is saved into heap and resumed later. With StackThreads, the compiler writer can straightforwardly translate sequential constructs of the source language into corresponding C statements or expressions, while using StackThreads primitives as a blackbox mechanism which switches execution between C procedures.

Similar Papers
  • Book Chapter
  • Citations10

MU-CSeq: Sequentialization of C Programs by Shared Memory Unwindings

  • Jan 01, 2014
  • Ermenegildo Tomasco +4
  • Research Article
  • Citations29

Runtime Mechanisms for Efficient Dynamic Multithreading

  • Aug 01, 1996
  • Journal of Parallel and Distributed Computing
  • Vijay Karamcheti +2
  • Research Article
  • Citations2

Modular verification of concurrent assembly code with dynamic thread creation and termination

  • Sep 12, 2005
  • ACM SIGPLAN Notices
  • Xinyu Feng +1
  • Research Article
  • Citations20

Step-Indexed Kripke Model of Separation Logic for Storable Locks

  • Sep 01, 2011
  • Electronic Notes in Theoretical Computer Science
  • Alexandre Buisse +2
  • Research Article
  • Citations274

The Nexus Approach to Integrating Multithreading and Communication

  • Aug 01, 1996
  • Journal of Parallel and Distributed Computing
  • Ian Foster +2
  • Book Chapter
  • Citations8

Pairwise Reachability Analysis for Higher Order Concurrent Programs by Higher-Order Model Checking

  • Jan 01, 2014
  • Kazuhide Yasukata +2
  • Book Chapter
  • Citations5

ω-Petri Nets

  • Jan 01, 2013
  • Gilles Geeraerts +3
  • Conference Article

Clone_n(): Parallel Thread Creation for Upcoming Many-Core Architectures

  • Sep 01, 2012
  • Balazs Gerofi +2
  • Book Chapter

An efficient implementation scheme of concurrent object-oriented languages on stock multicomputers (extended abstract)

  • Jan 01, 1993
  • Kenjiro Taura +2
  • Research Article
  • Citations19

Reachability Analysis of Synchronized PA Systems

  • Dec 01, 2005
  • Electronic Notes in Theoretical Computer Science
  • Ahmed Bouajjani
  • PDF
  • Conference Article
  • Citations4

On-stack replacement for program generators and source-to-source compilers

  • Oct 17, 2021
  • Grégory M Essertel +2
  • Book Chapter
  • Citations72

Zing: Exploiting Program Structure for Model Checking Concurrent Software

  • Jan 01, 2004
  • Tony Andrews +4
  • Conference Article
  • Citations18

Using the web for fast language model construction in minority languages

  • Sep 01, 2003
  • Viet Bac Le +3
  • Conference Article
  • Citations4

Hybrid Framework for Behavioral Prediction of Network Attack Using Honeypot and Dynamic Rule Creation with Different Context for Dynamic Blacklisting

  • Jan 01, 2010
  • Renuka Prasad B +1
  • Research Article
  • Citations8

A space allocation and reuse strategy for PCM-based embedded systems

  • Jul 30, 2014
  • Journal of Systems Architecture
  • Linbo Long +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.