[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problem with concurrency, threads, Lua states and maybe GC?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 3 Dec 2009 09:10:45 -0200
> On Thu, Dec 3, 2009 at 11:48 AM, Linker <linker.m.lin@gmail.com> wrote:
> > Threads are EVIL!
>
> They certainly are painful when they don't work! Of course, you are
> meaning OS threads? Because coroutines are much nicer. Now, if we
> could imagine a universe in which all I/O was asynchronous then
> everything could be done with coroutines. Of course, they still have
> to be scheduled, get to speak to each other politely, all the usual
> concurrency challenges.
Not exactly "all the usual". A main difference is that coroutines are
MUCH easier to debug.
-- Roberto
- References:
- Problem with concurrency, threads, Lua states and maybe GC?, Matt 'Matic' (Lua)
- Re: Problem with concurrency, threads, Lua states and maybe GC?, Javier Guerra
- Re: Problem with concurrency, threads, Lua states and maybe GC?, Jerome Vuarand
- Re: Re: Problem with concurrency, threads, Lua states and maybe GC?, Matt 'Matic' (Lua)
- Re: Re: Problem with concurrency, threads, Lua states and maybe GC?, Roberto Ierusalimschy
- Re: Problem with concurrency, threads, Lua states and maybe GC?, Matt "Matic" Page (Lua)
- Re: Problem with concurrency, threads, Lua states and maybe GC?, Linker
- Re: Problem with concurrency, threads, Lua states and maybe GC?, steve donovan