LuaThread: Multi-(platform|threading) support for the Lua language
LuaThread enables the Lua programmer to create preemptive, concurrent Lua programs, in which several threads of execution coordinately perform different tasks in parallel. The library runs both on Unix systems supporting the Pthreads standard and on Win32 systems (natively).
The functionality is provided in two parts: routines needed by Lua core to control parallel access to its internal structures and, independently, functions providing Lua scripts with the ability to create and synchronize multiple threads of execution.