[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why does coroutine.create return a thread?
- From: Coda Highland <chighland@...>
- Date: Tue, 21 Jun 2016 13:01:39 -0700
On Tue, Jun 21, 2016 at 12:45 PM, Gregg Reynolds <dev@mobileink.com> wrote:
>
> On Jun 21, 2016 10:45 AM, "Roberto Ierusalimschy" <roberto@inf.puc-rio.br>
> wrote:
> ...
>> Right: couroutine is a specific use case of a Lua thread. As it is the
>> only use of threads inside Lua code, we can say that, looking from Lua,
>> coroutine = thread.
>
> Is it correct to say that a Lua thread is a fiber? I.e. not an OS or
> pthread?
>
> - gregg
Yes, that could be considered accurate, as fibers are a
cooperative-multitasking construct.
/s/ Adam