Internal Flow of Threads or Thread Model

    whenever we write multi threading application, it contains multiple flow of controls.
All the flow controls follow the sequence steps at execution time.

Java programs starts execution by loading .class file

JVM creates a background thread and will reside in main.

Background thread creates various foreground threads and dispatches to their run to execute and result back to background and will handover to garbage.
Background thread gives back to program.
JVM collects background thread and will handover to Garbage collector.
Java program stops its execution.


Popular posts from this blog

What is Android ?