coroutine switch question

Mark Goodwin mark at bruce.oz
Mon Dec 5 08:18:07 AEST 1988


>From article <12237 at bellcore.bellcore.com>, by sjs at spectral.ctt.bellcore.com (Stan Switzer):
> I'm trying to do coroutine context switching on a Pyramid.  The
> chgstack() system call seems to be what I need to do it, but I can't
> figure out how to set up the initial stack frame.
> 
> Has anyone else figured out how to do this?

Chgstack() can be used and works in the BSD universe.
I have written a coroutine switch for the Icon programming language -
let me know if you want a copy (reasonably nasty code, though no assembler).

Mark Goodwin, Programmer @ Monash University Computer Science.



More information about the Comp.sys.pyramid mailing list