What is the difference between "Green Threads" and "Native Threads" ?

Alessandro A. Garbagnati

"Green Threads" are the default threads that are provided in the JDK, while the "Native Threads" are the one provided by the native Operating System.

Normally "Native Threads" provide better performance bacause are controlled by the kernel of the system, allowing the JVM to better use the resources offered by the system itself.

For example, in a multiprocessor system "Green Threads" will never be able to use Solaris or Linux or Windows specified kernel calls to optimize the use of the processors.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact