当前位置:网站首页>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 ;
边栏推荐
- Debian 10 installation configuration
- Element positioning of Web Automation
- Thoroughly understand JVM class loading subsystem
- Arduino measures AC current
- Error when LabVIEW opens Ni instance finder
- Arduino 测量交流电流
- d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
- Simple and beautiful method of PPT color matching
- Finally understand what dynamic planning is
- Nangou Gili hard Kai font TTF Download with installation tutorial
猜你喜欢
查看网页最后修改时间方法以及原理简介
Selenium+pytest automated test framework practice
audiopolicy
[digital signal denoising] improved wavelet modulus maxima digital signal denoising based on MATLAB [including Matlab source code 1710]
Tensor attribute statistics
[speech processing] speech signal denoising and denoising based on MATLAB low-pass filter [including Matlab source code 1709]
Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
MoCo: Momentum Contrast for Unsupervised Visual Representation Learning
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
随机推荐
Basic knowledge of database (interview)
The method and principle of viewing the last modification time of the web page
Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
C Primer Plus Chapter 9 question 9 POW function
Common JVM tools and optimization strategies
关于MySQL的30条优化技巧,超实用
Vision Transformer (ViT)
Judge whether the binary tree is a complete binary tree
14种神笔记方法,只需选择1招,让你的学习和工作效率提高100倍!
MoCo: Momentum Contrast for Unsupervised Visual Representation Learning
Methods modified by static
Masked Autoencoders Are Scalable Vision Learners (MAE)
媒体查询:引入资源
Un article traite de la microstructure et des instructions de la classe
Global and Chinese markets of tantalum heat exchangers 2022-2028: Research Report on technology, participants, trends, market size and share
d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
Nail error code Encyclopedia
Calculating the number of daffodils in C language
Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
Simple and beautiful method of PPT color matching