lua-users home
lua-l archive

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


On 22 June 2016 at 06:40, Coda Highland <chighland@gmail.com> wrote:
> On Tue, Jun 21, 2016 at 1:37 PM, Gregg Reynolds <dev@mobileink.com> wrote:
>>
>> On Jun 21, 2016 3:31 PM, "Coda Highland" <chighland@gmail.com> wrote:
>>> The fun part is when you realize that before Windows 95, the entire
>>> Windows operating system was cooperatively multitasked, and apps were
>>> expected to yield quickly when awakened by the OS.
>>>
>> MS-DOS: the Original Embedded System.
>
> MS-DOS wasn't even cooperatively multitasked. It was TECHNICALLY
> preemptively multitasked, in that triggering a TSR through an
> interrupt routine could happen at effectively arbitrary times in
> program flow, but there was no timesharing and the TSR would have to
> clean itself up and return control to the original program on its own.

You can do similar in lua; just set a debug hook that yields :)