arXiv · 1009.2405
A Model of Cooperative Threads
Abstract
We develop a model of concurrent imperative programming with threads. We focus on a small imperative language with cooperative threads which execute without interruption until they terminate or explicitly yield control. We define and study a trace-based denotational semantics for this language; this semantics is fully abstract but mathematically elementary. We also give an equational theory for the computational effects that underlie the language, including thread spawning. We then analyze threads in terms of the free algebra monad for this theory.
Explore related subjects
Keep this discovery
Martín Abadi, Gordon D. Plotkin. 2010-09-13. A Model of Cooperative Threads. https://doi.org/10.2168/lmcs-6(4%3A2)2010
Cite the original work for its findings. Save a collection to share your selection of sources.