[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What's the difference between a "coroutine" and a "thread" in Lua?
- From: Rob Kendrick <lua-l@...>
- Date: Mon, 13 Aug 2007 20:20:46 +0100
Asko Kauppi wrote:
> To take this thread ;) in a helthier direction...
>
> Can you please list such tasks, where built-in pre-emptive
> parallelism would have been useful. My curiosity is as the author of
> Lanes, wanting to know what couldn't be achieved by the current,
> extension module based approach. "Certain tasks" was too vague.
Well, I've certainly wished for similar when writing systems that need
to run user-provided code at the same time as other user-provided code.
Also, while in most cases you could use co-routines, having a
pre-emptive system simplifies the programmer's task, and having them
implemented in the VM would yeild significantly better performance than
just using the OS's threads, I'd expect.
B.
- References:
- What's the difference between a "coroutine" and a "thread" in Lua?, John Klimek
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Asko Kauppi
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Ana Lucia Moura
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, David Given
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, David Given
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Tony Finch
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Asko Kauppi
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Stefan Sandberg
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Rob Kendrick
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Asko Kauppi