JVM和HotSpot之间的区别? [英] Difference between JVM and HotSpot?

查看:1706
本文介绍了JVM和HotSpot之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HotSpot到底是什么以及它与JVM和OpenJDK有什么关系?它是图书馆吗?它到底是做什么的?

What exactly is HotSpot and how does it relate to JVM and OpenJDK? Is it a library? What exactly does it do?

另外,OpenJDK和HotSpot有什么区别?

Also, what is the difference between OpenJDK and HotSpot?

推荐答案

Java虚拟机规范

根据定义,JVM是虚拟机,i。即一个模拟真机操作的软件机器。像真机一样,它有一个指令集,一个虚拟计算机架构和一个执行模型。它能够运行用这个虚拟指令集编写的代码,就像真机可以运行机器代码一样。

The JVM is by definition a virtual machine, i. e. a software machine that simulates what a real machine does. Like a real machine, it has an instruction set, a virtual computer architecture and an execution model. It is capable of running code written with this virtual instruction set, pretty much like a real machine can run machine code.

HotSpot 是JVM概念的一个实现。它最初由Sun开发,现在由Oracle拥有。 JVM规范还有其他实现,例如 JRockit IBM J9 等等。

HotSpot is an an implementation of the JVM concept. It was originally developed by Sun and now it is owned by Oracle. There are other implementations of the JVM specification, like JRockit, IBM J9, among many others.

请参阅 Java虚拟机实施列表

OpenJDK 是一个项目在此基础上开发了HotSpot的开源实现(以及JDK的许多其他部分,例如编译器,API,工具等)。

The OpenJDK is a project under which an opensource implementation of HotSpot (and many other pieces of the JDK e.g compiler, APIs, tools, etc) is developed.

这篇关于JVM和HotSpot之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆