# Initialize the julia runtime more than once within C++

**URL:** <https://discourse.julialang.org/t/initialize-the-julia-runtime-more-than-once-within-c/82892>\
**Category:** Performance\
**Tags:** embedding, c\
**Created:** [June 16, 2022, 6:35pm UTC](https://discourse.julialang.org/t/initialize-the-julia-runtime-more-than-once-within-c/82892 "2022-06-16T18:35:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [June 16, 2022, 7:17pm UTC](https://discourse.julialang.org/t/initialize-the-julia-runtime-more-than-once-within-c/82892/2 "2022-06-16T19:17:29Z")

</div>

> [@MarioSouto](#):
>
> Is there any limitation in starting the julia runtime sequentially (I don’t need multiple julia running at the same time)? Or I am missing something else?

You only need to initialize the runtime once - it’s supposed to be kept around between function invocations. I suggest you do that outside of your request calling logic, since calling `jl_init` more than once effectively means running julia multiple times at the same time (in the same process - which will break).

---

_[View the full topic](https://discourse.julialang.org/t/initialize-the-julia-runtime-more-than-once-within-c/82892)._
