当前位置:网站首页>2: Chapter 1: understanding JVM specification 1: introduction to JVM;
2: Chapter 1: understanding JVM specification 1: introduction to JVM;
2022-07-05 23:11:00 【Small withered forest】
explain :
(1)JVM brief introduction , know JVM;
Catalog
3. Virtual machine is “Java Platform independence ” The protection of ;
1.JVM summary ;
(1) Virtual machine can be regarded as a computer system , But it is simulated by software ;
(2) On a real physical machine , Mainly from CPU Execute instruction set ;;; stay JVM in , Simulate instruction set through software ;
……………………………………………………
(1) The right part : We wrote java Source code (.java file ), And then through java compiler ( Such as javac Wait for the order , Or by IDEA Tools such as ) Compile it into java Bytecode (.class file );
● This process is the development process ;
(2) The left part : When we compile into .class After the document , This Java Platform runtime environment ( namely JVM) Through the class loader (Class Loader), Put the bytecode file (.class file ) Load into the virtual machine ;
● natural , When loading , Will verify and authenticate bytecode files ( such as , Verify whether it conforms to the virtual machine specification 、 Whether the format is correct );
● When loading bytecode files , Also mount java Class library ( It refers to some basic things that must be provided by the virtual organism 、 Necessary support , such as : Basic data types 、if-else and for Treatment of circulation 、 Basic java Safe handling ,JNI With some hardware processing and so on );
(3) The middle part on the left : When we finish loading , The virtual machine will give these to Java Interpreter ;
● Java The interpreter will interpret the bytecode and execute ; It will also involve just in time compilers (JIT);
● The runtime is much more complex than shown in this figure ;;; The running environment must first allocate memory , And then execute .class Bytecode ( You will use the bytecode execution engine ), Garbage collection is also needed , Consider concurrent processing , Safety treatment ;
(4) Lower left : If you need to interact with hardware or operating system ( Such as through JNI Interact with the outside world ), The virtual machine will come out ; namely java Programs interact with virtual machines 、 Virtual machines interact with operating systems 、 Then interact with the hardware through the operating system ;
2.JVM The main function ;
3. Virtual machine is “Java Platform independence ” The protection of ;
(1) stay Windows On the system 、Linux On different systems, such as the system ,Java Virtual machines are different ;
(2) The same program we developed , Compile it into .class After the document ;
● Throw it into Linux On the system , There is Linux Version of JVM To run ;;; Throw it into Windows On the system , There is Windows Version of JVM To run ;
● Look at it like this , Actually Java It's not really platform independent ; It's just that different virtual machines on different platforms have shielded us ;
边栏推荐
- audiopolicy
- Leecode learning notes
- CorelDRAW plug-in -- GMS plug-in development -- new project -- macro recording -- VBA editing -- debugging skills -- CDR plug-in (2)
- Vision Transformer (ViT)
- 3D reconstruction of point cloud
- Overview of Fourier analysis
- 秒杀系统的设计与实现思路
- One article deals with the microstructure and instructions of class
- Non rigid / flexible point cloud ICP registration
- 2022 registration examination for safety management personnel of hazardous chemical business units and simulated reexamination examination for safety management personnel of hazardous chemical busines
猜你喜欢

2:第一章:认识JVM规范1:JVM简介;

Vcomp110.dll download -vcomp110 What if DLL is lost

终于搞懂什么是动态规划的

fibonacci search

VOT toolkit environment configuration and use

Arduino 测量交流电流

Detailed explanation of pointer and array written test of C language

openresty ngx_lua请求响应

Common model making instructions

LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
随机推荐
基于STM32的ADC采样序列频谱分析
2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
视频标准二三事
openresty ngx_lua请求响应
判断二叉树是否为完全二叉树
东南亚电商指南,卖家如何布局东南亚市场?
秒杀系统的设计与实现思路
实现反向代理客户端IP透传
VOT Toolkit环境配置与使用
Element positioning of Web Automation
3 find the greatest common divisor and the least common multiple
Nail error code Encyclopedia
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
Ultrasonic sensor flash | LEGO eV3 Teaching
Non rigid / flexible point cloud ICP registration
Alibaba Tianchi SQL training camp task4 learning notes
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
One article deals with the microstructure and instructions of class
The difference between MVVM and MVC
Leetcode buys and sells stocks


