Types, Regions, and Effects for Safe Programming with Object-Oriented Parallel Frameworks
Types, Regions, and Effects for Safe Programming with Object-Oriented Parallel Frameworks
复制标题
使用面向对象并行框架进行安全编程的类型、区域和效果
DOI:
--
复制
发表时间:
2011
期刊:
影响因子:
--
通讯作者:
Vikram S. Adve
中科院分区:
文献类型:
--
作者:
R. Bocchino;Vikram S. Adve
Object-oriented frameworks can make parallel programming easier by providing generic parallel algorithms such as map, reduce, or pipeline and letting the user fill in the details with sequential code. However, such frameworks can produce incorrect behavior if they are not carefully used, e.g., if a user-supplied function performs an unsynchronized access to a global variable. We develop novel techniques that can prevent such errors. Building on a language (Deterministic Parallel Java, or DPJ) with an expressive region-based type and effect system, we show how to write a framework API that enables sound reasoning about the effects of unknown user-supplied methods. We also describe novel extensions to DPJ that enable generic types and effects while retaining soundness. We present a formal semantics and soundness properties for the language. Finally, we describe an evaluation showing that our technique can express three parallel frameworks and three realistic parallel algorithms using those frameworks.
影响因子:
--
作者:
Dodds M
通讯作者:
Dodds M
影响因子:
--
作者:
Potanin A
通讯作者:
Potanin A