lua-users home
lua-l archive

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


> I am assuming using the same approach in Lua / LuaJIT would perform even
> better, but as a Lua beginner, I have not found the correct approach.
> LuaLanes has been suggested. Essentially I am looking for a mechanism to
> create a master list of tasks / jobs, when are then dispatched to a number
> of worker processes < number of cores in the system.
> 
> Can anyone point me in the right direction?

You could take a look at the luaproc library. It uses pthreads to implement 
workers which can concurrently execute "Lua processes" -- independent states 
running Lua code which can communicate by means of message passing.

The source code is at available at: https://github.com/askyrme/luaproc and you 
can read more about it at http://www.inf.puc-rio.br/~roberto/docs/ry08-05.pdf.

--Alexandre