Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RADAR.NRL.NAVY.MIL!jcheng From: jcheng@RADAR.NRL.NAVY.MIL (Jerry Cheng) Newsgroups: comp.sys.transputer Subject: 3L Parallel C time function Message-ID: <8903241615.AA10084@radar.nrl.navy.mil> Date: 24 Mar 89 16:15:38 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 61 I was trying to figure out the execution speed of the build-in arctangent function of the Parallel C compiler. I was using the following codes: #include "time.h" #include "math.h" #define SIZE 100000 main() { int n, t1, t2; float x; t1 = time(); for ( n=0; nafserver -:b trig.b4 The program printed out the answers but then the computer just hung up. I had to do a CTRL-BREAK and got the message Server aborted by user The answer returned by the program was correct, but the program (or the server) never terminated. And there does not seem to have any obvious reasons. I suspected that the 'time' function call might have something to do with it so I removed from my program all references to 'time'. #include "math.h" #define SIZE 100000 main() { int n; float x; for ( n=0; n