LWP Quick docs - 2-Sep-90 "lwp.c" is the context switch code. Should be converted to assembly if this ever really works. "intr.aii" is the interrupt handler code. Also intercepts toolbox and GS/OS calls. "main.c" is a sample test program. Take a close look at it. "itest.c" is used for debugging the interrupt routines (but essentially worthless otherwise). "stuff.m16" is some macros. "tools.h" holds C defintions for some toolbox routines this uses. "lwp.public.h" is a public header file for all routines that use LWPs (i.e., applications programs). Link "2/start", "main", "lwp", and "intr" for a demo. Note this this was compiled under APW, with APW C and the APW assembler. No guarantees about compatibility with Orca/C. The main problem with this is that any output causes it to crash. I don't know if this is a peculiarity of the C library routines or what, but it's unacceptable since the main idea was to allow a UNIX fork() command for the //gs. If somebody can figure out why echoing characters causes a crash, the whole problem should be solved... No restrictions on this source code, but if you can get it to work I want a copy. No derivatives of this code may be sold without my written permission (so don't fix it up and turn it into a huge money-maker without allowing me to get my fingers in the proverbial pie...) - Andy McFadden 02-Sep-90