[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: cooperative multitasking
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 7 Jun 2002 13:55:49 -0300
>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
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: