Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3

Phillip Susi
2007-02-28T16:53:12Z

Michael K. Edwards wrote:
> State machines are much harder to write without going through a real
> on-paper design phase first. But multi-threaded code is much harder
> for a team of average working coders to write correctly, judging from
> the numerous train wrecks that I've been called in to salvage over the
> last ten years or so.

I have to agree; state machines are harder to design and read, but
multithreaded programs are harder to write and debug _correctly_.

Another way of putting it is that the threadlet approach is easier to
do, but harder to do _right_.