# Parallelization in Julia vs C++

**URL:** <https://discourse.julialang.org/t/parallelization-in-julia-vs-c/136083>\
**Category:** Performance\
**Tags:** question, parallel-computing\
**Created:** [March 7, 2026, 4:39pm UTC](https://discourse.julialang.org/t/parallelization-in-julia-vs-c/136083 "2026-03-07T16:39:26Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Rkiefe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rkiefe/32/218845_2.png) [@Rkiefe](https://discourse.julialang.org/u/Rkiefe)\
**Post date:** [March 11, 2026, 12:59pm UTC](https://discourse.julialang.org/t/parallelization-in-julia-vs-c/136083/21 "2026-03-11T12:59:04Z")

</div>

Thank you. I’ll keep that in mind. I use int32 because that is the int type in C++ and I tend to do @ccall so I keep the int types compatible. Yes I did try to pass a regular Julia int directly and it did not work correctly.

---

<div class="post-metadata">

**Author:** ![Rkiefe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rkiefe/32/218845_2.png) [@Rkiefe](https://discourse.julialang.org/u/Rkiefe)\
**Post date:** [March 11, 2026, 1:04pm UTC](https://discourse.julialang.org/t/parallelization-in-julia-vs-c/136083/22 "2026-03-11T13:04:01Z")

</div>

In order to do that I need to provide a `mesh`. The problematic code is highlighted in the first comment of this thread with a single threaded vs multi threaded approach, where only a mesh is missing to run.  
This issue is related to my repo here: [rkiefe/Femeko.jl: Not just a PDE toolbox. Adapt your ideas from a clean, modular code base with Femeko. - Codeberg.org](https://codeberg.org/rkiefe/Femeko.jl)  
In the `meshExample.jl` you see an example of how to generate a mesh struct. You can then place the p1! Function call and test. I started my vacation today so I won’t be able to do that myself right now… Thank you.

[Previous page](https://discourse.julialang.org/t/parallelization-in-julia-vs-c/136083.md?page=1)
