arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1308.0938cs.SE
收藏

在并发模型中处理并行性

Handling Parallelism in a Concurrency Model

Mischael Schill, Sebastian Nanz, Bertrand Meyer

摘要:

并发的编程模型被优化用于处理非确定性,例如处理异步到达的事件。为了有效地保护开发人员免受数据竞争错误的影响,这样的模型可以完全阻止对数据的共享访问。但是,这种限制也使它们不适合需要数据并行的应用程序。我们提出了一种基于库的方法,允许并行访问阵列,同时保留原始模型的安全保证。当应用到SCOOP,面向对象的并发模型,该方法表现出一个可以忽略不计的性能开销相比,普通线程实现两个并行基准程序。

英文摘要:

Programming models for concurrency are optimized for dealing with nondeterminism, for example to handle asynchronously arriving events. To shield the developer from data race errors effectively, such models may prevent shared access to data altogether. However, this restriction also makes them unsuitable for applications that require data parallelism. We present a library-based approach for permitting parallel access to arrays while preserving the safety guarantees of the original model. When applied to SCOOP, an object-oriented concurrency model, the approach exhibits a negligible performance overhead compared to ordinary threaded implementations of two parallel benchmark programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑