当前位置>主页 > 期刊在线 > 计算机技术 >

计算机技术2019年4期

Java 内存模型描述及变量运用分析
王茂钢
(广东省工业贸易职业技术学校,广东 佛山 528237)

摘  要:在使用Java 编程的过程中,内存是保障编程程序顺利进行的重要资源,而加强对内存的合理、有效运用,有助于编程效率的极大提升,并且在大量的研究和探索中,挖掘出其更加全面的功能。本文主要对Java 内存模型的概念、Java 的内存分配及相关功能进行了介绍,最后通过对Java 内存的详细分析,明确了Java 内存分配机制的具体应用,以供相关研究工作者参考。


关键词:Java 内存模型;Java 堆;内存分配;Java 虚拟机栈



中图分类号:TP311.11         文献标识码:A         文章编号:2096-4706(2019)04-0098-02


Java Memory Model Description and Variable Utilization Analysis
WANG Maogang
(Guangdong Industry and Trade College,Foshan 528237,China)

Abstract:In the process of using Java programming,memory is an important resource to ensure the smooth progress of programming program,and strengthening the rational and effective use of memory will help greatly improve the efficiency of programming,and in a large number of research and exploration,excavate its more comprehensive functions. In this paper,the concept of Java memory model,Java memory allocation and related functions are introduced. Finally,through the detailed analysis of Java memory,the specific application of Java memory allocation mechanism is clarified for the reference of relevant researchers.

Keywords:Java memory model;Java heap;memory allocation;Java virtual machine stack


参考文献:

[1] 张红,王晓明,曹洁,等.Hadoop 云平台MapReduce 模型优化研究 [J]. 计算机工程与应用,2016,52(22):22-25.

[2] Zhang Y,Feng X. An operational happens-before memory model [J]. Frontiers of Computer Science,2016,10(1):54-81.

[3] 杨兰. 计算机软件开发的JAVA 编程语言及其实际应用[J]. 电子设计工程,2017,25(21):49-52+56.

[4] 陈梦凯,李小雅. 基于JAVA 编程的危险化学品事故预测管理模型的建立 [J]. 赤峰学院学报(自然科学版),2016,32(19):30-32.


作者简介:王茂钢(1963.3-),男,汉族,四川渠县人,讲师,毕业于华南师范大学,本科,研究方向:计算机教学及应用。