Identifying a Unifying Mechanism for the Implementation of Concurrency Abstractions on Multi-language Virtual Machines [chapter]

Stefan Marr, Theo D'Hondt
2012 Lecture Notes in Computer Science  
Supporting all known abstractions for concurrent and parallel programming in a virtual machines (VM) is a futile undertaking, but it is required to give programmers appropriate tools and performance. Instead of supporting all abstractions directly, VMs need a unifying mechanism similar to INVOKEDYNAMIC for JVMs. Our survey of parallel and concurrent programming concepts identifies concurrency abstractions as the ones benefiting most from support in a VM. Currently, their semantics is often
more » ... ned, reducing their engineering benefits. They require a mechanism to define flexible language guarantees. Based on this survey, we define an ownership-based meta-object protocol as candidate for VM support. We demonstrate its expressiveness by implementing actor semantics, software transactional memory, agents, CSP, and active objects. While the performance of our prototype confirms the need for VM support, it also shows that the chosen mechanism is appropriate to express a wide range of concurrency abstractions in a unified way.
doi:10.1007/978-3-642-30561-0_13 fatcat:bciuuqrsgrfalk7k5wnpslwviq