# TBB and Julia threads composability

**URL:** <https://discourse.julialang.org/t/tbb-and-julia-threads-composability/43688>\
**Category:** General Usage\
**Created:** [July 26, 2020, 12:33am UTC](https://discourse.julialang.org/t/tbb-and-julia-threads-composability/43688 "2020-07-26T00:33:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hros](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hros](https://discourse.julialang.org/u/hros)\
**Post date:** [July 26, 2020, 12:33am UTC](https://discourse.julialang.org/t/tbb-and-julia-threads-composability/43688/1 "2020-07-26T00:33:42Z")

</div>

I would like to call parallel C++ libraries from a multithreaded Julia program, using the _composable_ parallelism of Julia and Intel’s TBB in tandem.  
While the Julia thread blog [post](https://julialang.org/blog/2019/07/multithreading/) and the [docs](https://docs.julialang.org/en/v1/base/multi-threading/) do not address this issue, I found an Intel blog [post](https://techdecoded.intel.io/resources/new-threading-capabilities-in-julia-v1-3/#gs.b5xz9f) (by the same authors) which mentions the need to compose parallel foreign libraries from Julia. However, that blog refers to a manual modification of the external library (FFTW) which is not a general solution.

Are there any plans to enable parallel composition from Julia with Intel’s TBB? (perhaps automatically adding the required interfaces during the jll creation of BinaryBuilder)  
If so, is there a beta version I can try out?

---

<div class="post-metadata">

**Author:** ![hros](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hros](https://discourse.julialang.org/u/hros)\
**Post date:** [August 12, 2020, 11:37pm UTC](https://discourse.julialang.org/t/tbb-and-julia-threads-composability/43688/2 "2020-08-12T23:37:53Z")

</div>

I understand the community was preoccupied with JuliaCon (which was terrific!)  
Now that JuliaCon is over and done, I’d appreciate an answer to my post: can I combine external parallel functions (e.g. C++ libraries using Intel’s TBB) with Julia’s `@spawn` parallelism
