Core semantics of multithreaded Java

JGI '01 Pub Date : 2001-06-01 DOI:10.1145/376656.376806
Jeremy Manson, W. Pugh
{"title":"Core semantics of multithreaded Java","authors":"Jeremy Manson, W. Pugh","doi":"10.1145/376656.376806","DOIUrl":null,"url":null,"abstract":"Java has integrated multithreading to a far greater extent than most programming languages. It is also one of the only languages that specifies and requires safety guarantees for improperly synchronized programs. It turns out that understanding these issues is far more subtle and difficult than was previously thought. The existing specification makes guarantees that prohibit standard and proposed compiler optimizations; it also omits guarantees that are necessary for safe execution of much existing code. Some guarantees that are made (e.g., type safety) raise tricky implementation issues when running unsynchronized code on SMPs with weak memory models.\nThis paper reviews those issues. It proposes a new core semantics for Java that allows for aggressive compiler optimization and addresses the safety and multithreading issues. Due to space constraints, certain side issues are addressed only in the full version of the semantics [8].","PeriodicalId":300882,"journal":{"name":"JGI '01","volume":"70 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2001-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"32","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JGI '01","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/376656.376806","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 32

Abstract

Java has integrated multithreading to a far greater extent than most programming languages. It is also one of the only languages that specifies and requires safety guarantees for improperly synchronized programs. It turns out that understanding these issues is far more subtle and difficult than was previously thought. The existing specification makes guarantees that prohibit standard and proposed compiler optimizations; it also omits guarantees that are necessary for safe execution of much existing code. Some guarantees that are made (e.g., type safety) raise tricky implementation issues when running unsynchronized code on SMPs with weak memory models. This paper reviews those issues. It proposes a new core semantics for Java that allows for aggressive compiler optimization and addresses the safety and multithreading issues. Due to space constraints, certain side issues are addressed only in the full version of the semantics [8].
多线程Java的核心语义
Java集成多线程的程度远远超过大多数编程语言。它也是为数不多的指定并要求对不正确同步的程序进行安全保证的语言之一。事实证明,理解这些问题比以前认为的要微妙和困难得多。现有规范保证禁止标准和建议的编译器优化;它还忽略了安全执行许多现有代码所必需的保证。当在具有弱内存模型的smp上运行非同步代码时,所做的一些保证(例如,类型安全)会引发棘手的实现问题。本文对这些问题进行了综述。它为Java提出了一个新的核心语义,允许积极的编译器优化,并解决了安全性和多线程问题。由于篇幅限制,某些侧面问题仅在语义的完整版本中得到解决[8]。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书