(2)chapter 5: The Java Virtual Machine I

When talking JVM, it may refer any of these:
1. the abstract specification
2. a concrete implementation
3. a runtime instance

The life-cycle of instance of JVM
Only one mission in the life of a instance of JVM: run one Java application.
Inside one instance of JVM, threads come in tow flavor: daemon and non-daemon. Daemon thread is ordinarily a threads used by the virtual machine iteself, such as garbage collection. The thread start by main() is not a daemon thread.
When all non-daemon threads terminate, the jvm terminates.

The Architecture of the Java Virtual Machine
[img]http://dl.iteye.com/upload/attachment/238634/5d00b434-2997-3f47-aa4b-6605acc78fd4.png[/img]

[img]http://dl.iteye.com/upload/attachment/238659/639b1320-c6b0-31d1-83b1-31f958b908cf.png[/img]
the pc register of thread 3 is undefined because it is running a native method

Data Types

[img]http://dl.iteye.com/upload/attachment/238662/d9c24736-0be8-3bbf-912b-47916f2be9b0.png[/img]
This chart depicts the data type of jvm, not java language
All the primitive types of the Java Language are primitive types of the JVM except boolean.
the returnValue is used to implement finally clause

[img]http://dl.iteye.com/upload/attachment/238666/8296a079-8ceb-3ae1-94f6-698ddcc0936a.png[/img]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值