Wednesday, June 10, 2015

JVM Architecture

6:44 AM

JVM Architecture

JVM (Java Virtual Machine) is a software. It is a specification that provides runtime environment in which java bytecode can be executed.

Operation of JVM

JVM mainly performs following operations.
  • Allocating sufficient memory space for the class properties.
  • Provides runtime environment in which java bytecode can be executed
  • Converting byte code instruction into machine level instruction.
JVM is separately available for every Operating System while installing java software so that JVM is platform dependent.
Note: Java is platform Independent but JVM is platform dependent because every Operating system have different-different JVM which is install along with JDK Software.

Class loader subsystem:

Class loader subsystem will load the .class file into java stack and later sufficient memory will be allocated for all the properties of the java program into following five memory locations.
  • Heap area
  • Method area
  • Java stack
  • PC register
  • Native stack

Heap area:

In which object references will be stored.

Method area

In which static variables non-static and static method will be stored.

Java Stack

In which all the non-static variable of class will be stored and whose address referred by object reference.

Pc Register

Which holds the address of next executable instruction that means that use the priority for the method in the execution process?

Native Stack

Native stack holds the instruction of native code (other than java code) native stack depends on native library. Native interface will access interface between native stack and native library.

Execution Engine

Which contains Interpreter and JIT compiler whenever any java program is executing at the first time interpreter will comes into picture and it converts one by one byte code instruction into machine level instruction JIT compiler (just in time compiler) will comes into picture from the second time onward if the same java program is executing and it gives the machine level instruction to the process which are available in the buffer memory.
Note: The main aim of JIT compiler is to speed up the execution of java program.

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

 

© 2013 Java Tutorials. All rights resevered. Designed by Templateism

Back To Top