Atomic println function


#1

Hi, there

I suffer from overlapping the print result from remote print and local print.
Especially, when print statement includes the print variables

For example:
addprocs(1) # => suppose worker number is 2
a = 1111
@spawnat 2 (println(“message”)
println(“long”, “concatenated”, a, “message”)

In the above example, the output sometimes is mixed as below:

long concatenated From worker 2: message # new line by message from worker 2
1111 message

How do I solve this problem?