lua-users home
lua-l archive

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


> So if a person wishes to actually do some heavy computation, they need
> to understand that they must let the system do some work, with a
> sleep(0) or something similar. (this is something that early Windows
> programmers needed to know, before truly preemptive threading)

Likewise in the Macintosh Toolbox before Mac OS X. Every time the program
called the Event Toolbox the system would pause the program. You could
do something similar here by wrapping a few Lua standard functions such
as those that do I/O.