# Distributed computing using addprocs

**URL:** <https://discourse.julialang.org/t/distributed-computing-using-addprocs/110984>\
**Category:** General Usage\
**Tags:** question, parallel, distributed\
**Created:** [March 1, 2024, 12:07am UTC](https://discourse.julialang.org/t/distributed-computing-using-addprocs/110984 "2024-03-01T00:07:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![math\_opt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/math_opt/32/25317_2.png) [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Post date:** [March 1, 2024, 7:32pm UTC](https://discourse.julialang.org/t/distributed-computing-using-addprocs/110984/3 "2024-03-01T19:32:10Z")

</div>

Thanks @abraemer for the response. That makes things clearer.

> [@abraemer](#):
>
> Is there a reason you don’t use threads instead of processes?

I have used multithreading before, which seems to make my code slower (but that was a few years ago), so I never tried it again. Also, I have several independent mathematical optimization problems that I am trying to parallelize. According to this [post](https://discourse.julialang.org/t/what-is-the-difference-between-threads-spawn-and-distributed-spawnnat/35560/2), distributed computing is more suited for large optimization problems. But maybe I am doing something wrong, I am not well-versed with all the technicalities behind multithreading and distributed computing.

---

_[View the full topic](https://discourse.julialang.org/t/distributed-computing-using-addprocs/110984)._
