Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Green Thread/User Thread of JVM

Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

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?
Posts: 67671
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic