[mercury-users] multi threading problem
Ralph Becket
rafe at cs.mu.OZ.AU
Wed Dec 4 14:30:40 AEDT 2002
Pieter Laeremans, Wednesday, 4 December 2002:
> Hi,
>
> I've got a multi threading problem.
[...]
>
> Inside test pred 1
> Inside test pred 2
> Inside test pred 2
> Inside test pred 1
> ....
>
>
> But it does not. My terminal stays blank, and the program isn't
> consuming any cpu. Does anyone has some explanation for this ?
I notice that none of your IO statements prints a newline or
calls io__flush_output/2.
I suspect your program will eventually cause something to be displayed
once the output buffer fills up. But that'll take some time with this
program.
Add in a few "\n"s to the end of the output strings or include calls
to io__flush_output/2 and see if the problem goes away.
- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list