tsl@mungunni.cs.mu.OZ.AU (Tim Leask) (08/21/90)
Has anyone been able to get EPT to work? Is it brain-damaged or is it me ? I've have typed in the following code based on some from an early draft of the Encore Parallel Threads Manual. I removed nearly everything to isolate the problem. #include <thread.h> #include <stdio.h> void startup(); void mult(); main(argc,argv) int argc; char **argv; { THREADgo(2,20 * 1024, startup, 0, 0, 2*1024,2); } void startup() { } When I run this program after linking with ept I get a 30 Meg process running!! I did a size on the binary and found that the bss segment was 30 Meg in size. Sometimes I get the following error message: THREAD (error): THREADgo: fork failed, using -1 processors Other times I get nothing. The initial process never terminates and I end up having to kill it and any children that it may have been able to fork off. I've tried various values for nr_procs (1,2,3), data_size (2 Meg, 200k 20k), stacksize (20k,2k) None of these changes affected the process size. It's always 30 Meg as are its children. We are running UMAX 4.3 on an Encore with 18 APC processors. What is going wrong? Is there some sysparams that need to be set to get the library to work. Where can I get a working version of Threads for the Encore? (Assuming ours is no good). I was hoping to use threads in my honours project so any and all responses gratefully received. Thanks Tim Leask ======================================================================= | Tim Leask, Programmer and Honours Researcher | | Department of Computer Science, Melbourne University | | ACSnet: tsl@munnari.oz.au UUCP: {mcvax,ukc,ubc-cs}!munnari!tsl | | CSNET: tsl%munnari.oz INTERNET: tsl%munnari.oz@uunet.uu.net | =======================================================================