码迷,mamicode.com
首页 > 其他好文 > 详细

Green Thread

时间:2014-09-14 02:38:06      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:style   http   io   os   java   ar   strong   for   art   

What is Green Thread.

wiki http://en.wikipedia.org/wiki/Green_threads

The Wikipedia article Green Threads explains it very well. 

In a nutshell, Green threads are "user-level threads". They are scheduled by an "ordinary" user-level process, not by the kernel. So they can be used to simulate multi-threading on platforms that don‘t provide that capability.

JVM

Green threads were abandoned in the Sun JVM for Linux as of the release of version 1.3 (see Java[tm] Technology on the Linux Platform). That dates back to 2000.

Erlang VM

Erlang doesn‘t use "Green Threads" but rather something closer to "Green Processes": processes do not share data memory directly but do so by "copying" it (i.e. having independent copies of the source data).


Reference 

http://en.wikipedia.org/wiki/Green_threads

http://stackoverflow.com/questions/1947180/whats-the-difference-between-green-threads-and-erlangs-processes


Green Thread

标签:style   http   io   os   java   ar   strong   for   art   

原文地址:http://my.oschina.net/u/1767744/blog/313240

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!