# ProgressMeter and Threads.@Threads

**URL:** <https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495>\
**Category:** General Usage\
**Created:** [October 30, 2019, 2:40pm UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495 "2019-10-30T14:40:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bashonubuntu](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Post date:** [October 30, 2019, 2:40pm UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495/1 "2019-10-30T14:40:25Z")

</div>

Has there been any progress on this? I have tried using it in a manner similar the documentation (but for @threads) and couldn’t get this to work. I am currently using julia-1.2.0. A plain

```julia
@showprogress 1 "Computing..." Threads.@threads for i in 1:100 
      #do something      
end

```

doesn’t seem to work but

```julia
@showprogress 1 "Computing..." @distributed () for i in 1:100 
      #do something      
end

```

does.

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [October 30, 2019, 7:22pm UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495/2 "2019-10-30T19:22:51Z")

</div>

It’s in progress 😉

[https://github.com/timholy/ProgressMeter.jl/pull/139](https://github.com/timholy/ProgressMeter.jl/pull/139)

---

<div class="post-metadata">

**Author:** ![bashonubuntu](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Post date:** [October 30, 2019, 7:32pm UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495/3 "2019-10-30T19:32:01Z")

</div>

awesome!

---

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [October 31, 2019, 2:39am UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495/4 "2019-10-31T02:39:48Z")

</div>

FYI, an alternative is a combination of [`Transducers.withprogress`](https://tkf.github.io/Transducers.jl/dev/manual/#Transducers.withprogress), `reduce`, and one of the [progress monitor packages](https://github.com/JunoLab/ProgressLogging.jl). I implemented a simple monitor [ConsoleProgressMonitor.jl](https://github.com/tkf/ConsoleProgressMonitor.jl) wrapping ProgressMeter.jl.

---

<div class="post-metadata">

**Author:** ![bashonubuntu](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Post date:** [November 5, 2019, 2:28am UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495/5 "2019-11-05T02:28:10Z")

</div>

Thank you, this works great too!

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [November 12, 2019, 9:40pm UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495/6 "2019-11-12T21:40:47Z")

</div>

Thanks to some great work 🎆 by @ianshmean, ProgressMeter 1.2 has just been released and supports threading. See the documentation section [here](https://github.com/timholy/ProgressMeter.jl#progress-meters-for-tasks-with-a-pre-determined-number-of-steps).

---

<div class="post-metadata">

**Author:** ![bashonubuntu](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Post date:** [November 12, 2019, 9:54pm UTC](https://discourse.julialang.org/t/progressmeter-and-threads-threads/30495/7 "2019-11-12T21:54:33Z")

</div>

Thank you! This is awesome!
