[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why does coroutine.create return a thread?
- From: Daurnimator <quae@...>
- Date: Wed, 22 Jun 2016 06:43:56 +1000
On 22 June 2016 at 06:40, Coda Highland <email@example.com> wrote:
> On Tue, Jun 21, 2016 at 1:37 PM, Gregg Reynolds <firstname.lastname@example.org> wrote:
>> On Jun 21, 2016 3:31 PM, "Coda Highland" <email@example.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 :)