Simulating Threads in Eu
- Posted by jbrown105 at speedymail.org Jun 01, 2002
- 439 views
I'm trying to figure out how to simulate threads in Eu, under Linux fork() does what I need but the problem is with sharing veriables. (I could use clone(), but besides being Linux-only (iow, clone() WILL NOT WORK FOR FREEBSD) it has the requirement that exu itself be re-entrant. I dont need exu to be re-entrant (I plan to use fork() to separate the "threads" from each other) but I do need a way for simulating the sharing of variables (i'll also make a preprocessor once i got the basic libs down to simpify the writing of the code). I could use shared memory, but there is no way to share sequences. Anyone have any ideas whatsoever? (I did try using files but that was too clumsy, I may look into it again if no one can give me a better alternative.) TIA, jbrown -- http://fastmail.fm - Ever wonder why we aren't named snailmail.sm?