Path: utzoo!attcan!uunet!ginosko!aplcen!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.lang.c
Subject: Re: Coroutines in C
Message-ID: <10747@smoke.BRL.MIL>
Date: 16 Aug 89 04:25:28 GMT
References: <5663@ficc.uu.net> <14281@haddock.ima.isc.com> <563@augean.OZ> <5695@ficc.uu.net>
Reply-To: gwyn@brl.arpa (Doug Gwyn)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 11

In article <5695@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes:
>> What sort of problems do you want coroutines for? I seem to have survived about
>> 14 years of programming without ever using them!
>Mainly for the sort of event-loop programming endemic to windowing systems.
>It would be easier to code this sort of application if minithreads were
>available.

Ah, you raise an interesting point.  EVENT LOOPS SUCK.  Rob Pike has
some interesting comments on this and suggestions for a better approach
in his article "A Concurrent Window System" in the Spring 1989 issue of
Computing Systems (The Journal of the USENIX Association) (Vol. 2 No. 2).