File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Green Thread/User Thread of JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

Green Thread/User Thread of JVM

Nilesh Raje
Ranch Hand

Joined: Aug 02, 2005
Posts: 153

I belive green thread are the threads that are created and managed by the JVM and it cannot take advantage of multiple process as its runs within single process that JVM is in. Actually JVM will exist in one of the native threads created by OS.

Well when we say java and some class file name on command prompt Is there some thread like green thread created by JVM that keeps listening for java executable files and as soon as we run the java file is it attached to that thread. Does JVM create thread for each java program that we run?

One more query is like what if we actually write a thread class?
I belive in this thread gets attached to the JVM created thread but the control is with the user as its user created? Am i Right?

Also then in this case will there be 2 stacks?? one for the thread from JVM and other from the User thread?

I would also like to know that can we install multiple JVM on Same OS say in different drives? and if we can then i belive we will have to use IPC or RMI to communicate as both JVM will be in different process?

Thanks and Regards,<br />Nilesh<br />SCJP 1.4, SCWCD 1.4
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Green Thread/User Thread of JVM
It's not a secret anymore!