RE: Managing states
Jim Mathies <jim <at> mathies.com>
2000-02-10 17:13:26 GMT
This is a single vm / multiple thread solution if I'm reading
your description correctly?
What about a multithreaded version of Lua? Is that on the horizon?
To get around this myself in Windows, I've been experimenting
around with compiling the Lua src into a cross platform executable
format such as elf, and then loading it manually into memory
on a per thread basis. My application requires a single
Lua lib, one process, multiple threads all executing at the same time.
I like the time slice idea, except - you have to call that suspend callback
to give up control. If a programmer doesn't do this - well, your
program could lock up or fail. Plus, performance isn't very good
if you have say, 10 scripts running at the same time.
Regards,
Jim Mathies
-----Original Message-----
From: Thomas Tong [mailto:toes <at> firestarters.org]
Sent: Thursday, February 10, 2000 8:32 AM
To: Multiple recipients of list
Subject: re: Managing states
---
Is it possible to freeze the execution of a lua program, save its state
and, some time later, restore the saved state and resume execution from
where it stopped?
(Continue reading)