• Post Reply 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Green and Native Threads

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone please explain the difference between the two types: green threads and native threads
Any help appreciated.
GUnjan
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Green threads is thread mechanism implemented in JVM itself. It is blind and can run on any OS, so actually all threads are run in one native thread and scheduling is up to JVM.
This is disadvantageously for SMP systems, since only one processor can serve Java application.
Native threads is a mechanism based on OS threading mechanism. This allows to use features of hardware and OS. For example,there is IBM's JDK for AIX that supports native threads. The perfomance of applications can be highly imploved by this.

------------------
With best of best regards, Pawel S. Veselov ( aka Black Angel )
 
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I learned something new today. Thanks!
I was using the BlackDown 1.1.8 "JDK" on Linux with Jserv and Jonas and I could never figure out what the green/native thread diffrence is.
Man I love helpful message bases.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic