Newsgroups: comp.parallel.pvm
From: mfreed@ux1.cso.uiuc.edu (Michele Freed)
Subject: Re: Write to screen
Organization: University of Illinois at Urbana
Date: 27 Sep 1994 23:56:41 GMT
Message-ID: <36abfp$7m9@vixen.cso.uiuc.edu>

Gjertrud Kamstrup DA Laengle (kamstrup@i60s29.ira.uka.de) wrote:

: -- 

: Hello,

: I have got a root process which 'spawns' 6 other processes, and I would like some
: of these processes to write to the screen. I have tried 'printf' and 'fputs(...,
: stdout). In the first case I do not see anything on the screen, but I can find it
: in the file /tmp/pvml.****

: Can anyone help me ??

: Gjertrud W. Kamstrup

--
Yep, I've seen this before.  How I solved it was by using a fflush() after
my printfs. Warning the the output file will look strange as messages can
arrive in *any* order.  I put a tag in each of my printfs to indicate
which processor it came from. (I just used the tids)

-m

__________________________________________________________________________
Michele Freed email: mfreed@uiuc.edu voice: 217-244-8409
1304 W. Springfield Ave, Office #1507, Urbana Il 61801
__________________________________________________________________________

