期刊文献+
共找到5篇文章
< 1 >
每页显示 20 50 100
JMM缺陷分析及同步增强方法
1
作者 谭立新 王嫣 《中州大学学报》 2004年第3期115-117,共3页
本文介绍了Java内存模型和DCL失效问题 ,从而引入DougLea的Concurrent包来实现Java高级并行程序开发。
关键词 jmm synchronized DCL CONCURRENT PACKAGE
在线阅读 下载PDF
JMM与double/long变量同步方法探究
2
作者 俞松 郑骏 杨云 《微处理机》 2010年第1期79-82,85,共5页
Java存储模型是Java语言和Java虚拟机研究中的核心关键部分。Java语言规范规定:所有对基本类型的操作,除了对double/long类型的操作之外,都必须是原子级的。Java提供的volatile关键字可以使double/long变量实现变量级同步,但仍不能保证... Java存储模型是Java语言和Java虚拟机研究中的核心关键部分。Java语言规范规定:所有对基本类型的操作,除了对double/long类型的操作之外,都必须是原子级的。Java提供的volatile关键字可以使double/long变量实现变量级同步,但仍不能保证线程间同步。针对这些不足,结合实例分析了Java内存模型,synchronized方法,引入了硬件原语(CAS),给出了非阻塞算法的同步策略。 展开更多
关键词 Java内存模型 Double/long变量 Volatile关键字 Synchronized方法 非阻塞算法
在线阅读 下载PDF
JMM与DCL失效探究 被引量:1
3
作者 徐茜亮 王成良 王远斌 《微处理机》 2005年第6期53-56,共4页
Java提供的synchronized关键字可使多线程实现同步,但也会导致双重检查锁定(Double-Checked Locking,DCL)失效。一般采用继承ThreadLocal类的方式来避免这种失效,但实现效率低,性能损失大。针对这些不足,本文结合实例分析了Java内存模型... Java提供的synchronized关键字可使多线程实现同步,但也会导致双重检查锁定(Double-Checked Locking,DCL)失效。一般采用继承ThreadLocal类的方式来避免这种失效,但实现效率低,性能损失大。针对这些不足,本文结合实例分析了Java内存模型(JMM)、DCL失效原因以及ThreadLocal的内部运行机制,给出了将类的对象设计成Singleton模式的策略。 展开更多
关键词 Java内存模型 双重检查锁定 ThreadLocal方式 SINGLETON模式
在线阅读 下载PDF
一种改进的隐含相似性光学和SAR图像配准算法 被引量:4
4
作者 关泽群 周敏璐 王建梅 《同济大学学报(自然科学版)》 EI CAS CSCD 北大核心 2013年第4期600-606,共7页
光学和SAR(synthetic aperture radar)图像信息的互补性和特征表现的差异性使得两者的配准成为目前多源遥感图像处理的研究重点.隐含相似性配准从图像间存在结构上的相似性出发,将传统复杂的特征匹配过程简化为特征点集的迁移和仅需在... 光学和SAR(synthetic aperture radar)图像信息的互补性和特征表现的差异性使得两者的配准成为目前多源遥感图像处理的研究重点.隐含相似性配准从图像间存在结构上的相似性出发,将传统复杂的特征匹配过程简化为特征点集的迁移和仅需在单幅图像上对配准参数进行迭代搜索的过程,为光学和SAR图像配准提供新的思路.基于上述配准思想,研究用Canny算子改进特征点集提取过程,引入联合马尔可夫模型提高SAR图像去噪质量,以改进后的量子粒子群算法优化配准参数搜索过程,最终实现光学和SAR图像的配准.经实验证明,改进后的隐含相似性光学和SAR图像配准算法能达到像素级甚至亚像素级的配准精度. 展开更多
关键词 隐含相似性 图像配准 SAR去噪 联合马尔可夫模型 量子粒子群算法
在线阅读 下载PDF
An operational happens-before memory model 被引量:1
5
作者 Yang ZHANG Xinyu FENG 《Frontiers of Computer Science》 SCIE EI CSCD 2016年第1期54-81,共28页
Happens-before memory model (HMM) is used as the basis of Java memory model (JMM). Although HMM itself is simple, some complex axioms have to be introduced in JMM to prevent the causality loop, which causes absurd... Happens-before memory model (HMM) is used as the basis of Java memory model (JMM). Although HMM itself is simple, some complex axioms have to be introduced in JMM to prevent the causality loop, which causes absurd out-of-thin-air reads that may break the type safety and se- curity guarantee of Java. The resulting JMM is complex and difficult to understand. It also has many anti-intuitive behav- iors, as demonstrated by the "ugly examples" by Aspinall and ~ev6~ [1]. Furthermore, HMM (and JMM) specifies only what execution traces are acceptable, but says nothing about how these traces are generated. This gap makes it difficult for static reasoning about programs. In this paper we present OHMM, an operational variation of HMM. The model is specified by giving an operational semantics to a language running on an abstract machine de- signed to simulate HMM. Thanks to its generative nature, the model naturally prevents out-of-thin-air reads. On the other hand, it uses a novel replay mechanism to allow instruc- tions to be executed multiple times, which can be used to model many useful speculations and optimization. The model is weaker than JMM for lockless programs, thus can accom- modate more optimization, such as the reordering of inde- pendent memory accesses that is not valid in JMM. Program behaviors are more natural in this model than in JMM, and many of the anti-intuitive examples in JMM are no longer valid here. We hope OHMM can serve as the basis for new memory models for Java-like languages. 展开更多
关键词 relaxed memory model happens-before opera-tonal semantics DRF-Guarantee jmm
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部