lua-users home
lua-l archive

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

Lua is a single-threaded language. Both the Lua interpreter and LuaJIT only support one active thread per global Lua state. You can either use multiple Lua states (e.g. one per thread) and provide some communication and synchronization mechanism between them, or you will need a global mutex, which will limit your concurrency and scalability. (BTW: Python supports multiple threads, but only one thread can access the core interpreter at a time, so you don't gain much)

The current LuaJIT compiler seems very stable. I have not had any issues with it, except that it will only run on 32-bit X86.

On Jul 22, 2008, at 11:58 PM, Manish Jain wrote:

What is the current (1.1.4) maturity level of LuaJIT. Is it alpha/beta/production quality?
We are planning to use it in telecom (VoIP) switch.
We have multithreading environment on multiprocessor platform. So, we should be able to
call same lua function from multiple threads in parallel. I mentioned this concern because of
Please suggest.
Best Regards,
Manish Jain

Gé Weijers