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