[E-Lang] Why Not Coroutines? (was: Deadlock-free [was what is good about E?])

Bill Frantz frantz@pwpconsult.com
Thu, 19 Jul 2001 14:18:02 -0700


At 11:03 PM -0700 7/18/01, Richard wrote:
>In reply to Mark, Bill Frantz writes:
>
>>A bit off topic for this list, but I can't resist noting that KeyKOS
>>provides coroutines.  A "call" operation on a "resume key" is a coroutine.
>>(A resume key is produced by a call operation to allow the callee to return
>>to the caller.  Calling a resume key consumes the resume key and produces a
>>new resume key.)
>
>Bill is talking about coroutines.
>
>Were KeyKOS apps primarily written in assembler, Bill?

The first version of KeyKOS (for the IBM/370) was primarily written in
assembler, with some PL/I.  The "portable" version was written in C.  Since
the KeyKOS coroutine linkage I described uses the kernel, each side of the
coroutine has its own stack (and in fact, its own address space).

Cheers - Bill


-------------------------------------------------------------------------
Bill Frantz           | The principal effect of| Periwinkle -- Consulting
(408)356-8506         | DMCA/SDMI is to prevent| 16345 Englewood Ave.
frantz@pwpconsult.com | fair use.              | Los Gatos, CA 95032, USA