lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Hi Javier,

green threads are used extensively in Java VMs for embedded systems, majority of Java VMs for mobile phones use green threads.

Currently, lua offers coroutines for systems where using the OS threads is undesirable. Green threads would be a good alternative to coroutines.


2008/7/31 Javier Guerra <>
On Thu, Jul 31, 2008 at 5:07 AM, Ivan Gagis <> wrote:
> Hi All,
> I saw some discussion about different implementations of threads in lua, but
> no one talked about green threads.
> In my opinion introducing the green treads would be a very good alternative
> to all implementations of threads (with native OS threads) existing at the
> moment and coroutines.

does green threads offer any hard advantage on modern systems? most
java VMs have migrated away from them...

(i know, Erlang and friends do that; but i think their architecture
offers special benefits from greeness that wouldn't transfer to Lua)