lua-users home
lua-l archive

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


John Klimek wrote:

Are Lua "coroutines" and "threads" the same exact thing?

Yes:

Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio
print(type(coroutine.create(function() end)))
thread

The non-Lua type of thread can be referred to as an "OS
thread".

--
Aaron
http://arundelo.com/