lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


For more on setjmp/longjmp fibers
please look at the following page:

http://www.csl.mtu.edu/cs4411.ck/www/NOTES/non-local-goto/mtp.html

It describes a scheduler written in ANSI C using only
setjmp and longjmp. It has one major deficiency,
that is, it does not copy the stack. So you cannot use 
non-static local variables in the functions that are 
running in parallel as coroutines/fibers. 

But, perhaps it is possible to perform this feat with 
just plain ANSI C. Is anyone here courageous enough to try? 

-- 
"No one knows true heroes, for they speak not of their greatness." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be