[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: coroutines
- From: Mark Hamburg <mhamburg@...>
- Date: Mon, 22 Nov 2004 18:23:46 -0800
Failure mode for pre-emptive threads: One thread occasionally stomps on
another thread. Mutexes occasionally get caught in deadlock patterns. Key
word in almost all case: "occasionally" -- i.e., hard to reproduce.
Failure mode cooperative threads: A thread fails to yield and hogs the
processor. Generally, this will happen consistently.
Which sort of system would you rather debug?
That being said, a good basic scheduler and I/O package for Lua would
probably be a good thing.
Mark