# JuMP Multi-threading example

**URL:** <https://discourse.julialang.org/t/jump-multi-threading-example/95210>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [February 25, 2023, 11:27pm UTC](https://discourse.julialang.org/t/jump-multi-threading-example/95210 "2023-02-25T23:27:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stuart\_Rogers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stuart_rogers/32/10694_2.png) [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Post date:** [February 25, 2023, 11:27pm UTC](https://discourse.julialang.org/t/jump-multi-threading-example/95210/1 "2023-02-25T23:27:37Z")

</div>

In this JuMP example of multi-threading, why does the vector of solutions have 8 elements, while the for loop size is 10?

> **[Parallelism · JuMP](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/parallelism/#With-multi-threading)**
>
> Documentation for JuMP.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [February 26, 2023, 12:12am UTC](https://discourse.julialang.org/t/jump-multi-threading-example/95210/2 "2023-02-26T00:12:44Z")

</div>

That looks like a bug 😄 I’ll fix

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [February 26, 2023, 12:22am UTC](https://discourse.julialang.org/t/jump-multi-threading-example/95210/3 "2023-02-26T00:22:02Z")

</div>

Fixed [[docs] fix thread safefy issue in parallelism tutorial by odow · Pull Request #3240 · jump-dev/JuMP.jl · GitHub](https://github.com/jump-dev/JuMP.jl/pull/3240).

(I only added the tutorial a couple of days ago, so it’s a little new: [Sign in to GitHub · GitHub](https://github.com/jump-dev/JuMP.jl/pull/3231.))
