lua-users home
lua-l archive

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


> "Creates a new thread running in a new, independent state...."
> 
> What does "thread" mean here? A pthread, for example?

"The type thread represents independent threads of execution and
it is used to implement coroutines (see §2.6). Lua threads are
not related to operating-system threads. Lua supports coroutines
on all systems, even those that do not support threads natively."
https://www.lua.org/manual/5.3/manual.html#2.1