lua-users home
lua-l archive

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


On Tue, Sep 09, 1997 at 12:00:25AM -0300, Bret Mogilefsky wrote:
> cooperative multitasking, meaning each thread has to yield in order for
> other threads to run and data is shared among the tasks.  You're right
> in that collecting the globals together per task is the main thing, but
> there are some other concerns.  In particular, Lua uses recursion for
> its call stack... This is fine without multitasking, but as soon as you
> add multitasking to the mix things get complex.  What happens if, say,
> you have functions calling back from C to Lua in one task, so your
> frames look like this:

However, what both of us were talking about won't run into this problem.
We were not going to share data and have a concept of "multiple-lua"
threads. We effectively just want to be able to instantiate multiple
copies of the "lua environment", each in it's own thread, but completely
separate. 

While it would be nice to include all of this functionality into Lua, I
don't have any immediate need for multiple threads within one global lua
space.

-- 
David Jeske (N9LCA) + jeske@chat.net