lua-users home
lua-l archive

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




Jim <djvaios@gmail.com>于2019年5月23日 周四02:06写道:
i recently learned that the CPython interpreter uses a
global interpreter lock. i suppose Lua does not, right ?

Yes, you can run multi lua vm in different thread, each one is independent, no global lock.

Pyhton has GIL problem, so there is a global lock even you run multi python vm (for multi task), it’s inefficient.

Lua has no GIL problem, but you should use multi vm for multithreading.



--
http://blog.codingnow.com