Coroutines in C

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Aug 16 14:25:28 AEST 1989


In article <5695 at ficc.uu.net> peter at 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).



More information about the Comp.lang.c mailing list