# Print functions in a threaded loop

**URL:** <https://discourse.julialang.org/t/print-functions-in-a-threaded-loop/12112>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 2, 2018, 9:51pm UTC](https://discourse.julialang.org/t/print-functions-in-a-threaded-loop/12112 "2018-07-02T21:51:06Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![saschatimme](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/saschatimme/32/10313_2.png) [@saschatimme](https://discourse.julialang.org/u/saschatimme)\
**Post date:** [July 4, 2018, 6:35am UTC](https://discourse.julialang.org/t/print-functions-in-a-threaded-loop/12112/11 "2018-07-04T06:35:21Z")

</div>

Another possibility is to disassemble the `@threads` macro to only print on the main thread. Maybe you find [my answer](https://discourse.julialang.org/t/progressmeter-and-threads/11537/3) for multithreading and [ProgressMeter](https://github.com/timholy/ProgressMeter.jl) updates useful (maybe you even want to use a ProgressMeter instead of just plain printing).

---

_[View the full topic](https://discourse.julialang.org/t/print-functions-in-a-threaded-loop/12112)._
