# Atomic println function

**URL:** <https://discourse.julialang.org/t/atomic-println-function/6259>\
**Category:** General Usage\
**Created:** [October 5, 2017, 7:38am UTC](https://discourse.julialang.org/t/atomic-println-function/6259 "2017-10-05T07:38:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![usefulhyun](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/usefulhyun/32/1770_2.png) [@usefulhyun](https://discourse.julialang.org/u/usefulhyun)\
**Post date:** [October 5, 2017, 7:38am UTC](https://discourse.julialang.org/t/atomic-println-function/6259/1 "2017-10-05T07:38:23Z")

</div>

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?
