lua-users home
lua-l archive

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


Lua itself doesn't have threads that run concurrently, what it has is coroutines, that is a form of cooperative multitasking - you manage when to yield. Hovewer, most common type of thread implementation is mutexing Lua state, and it is equivalent to GIL. You are better to run multiple Lua states (that communicate via host code) concurrently rather running your threads in the same single Lua state.

Ilya Shchukin

On Wed, May 22, 2019, 9:06 PM Jim <djvaios@gmail.com> wrote:
i recently learned that the CPython interpreter uses a
global interpreter lock. i suppose Lua does not, right ?