lua-users home
lua-l archive

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


>Long-running threads with lots of processing would be sprinkled
>with yield calls, no?

Yes, that's why it's called cooperative multitasking.

>Or I suppose one could use the line-hook, although that would be quite
>slow.

Or the call hook.

Anyway, cooperative multitasking is provide now in the core of Lua.
If your platform allows multithreading then you can add that too. An example
is given in LuaThreads:
	http://www.tecgraf.puc-rio.br/~diego/luathreads/
--lhf