# Parallel programing in root

**URL:** <https://root-forum.cern.ch/t/parallel-programing-in-root/45560>\
**Category:** Newbie\
**Created:** [June 25, 2021, 4:30pm UTC](https://root-forum.cern.ch/t/parallel-programing-in-root/45560 "2021-06-25T16:30:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mitchem](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@Mitchem](https://root-forum.cern.ch/u/Mitchem)\
**Post date:** [June 25, 2021, 4:30pm UTC](https://root-forum.cern.ch/t/parallel-programing-in-root/45560/1 "2021-06-25T16:30:07Z")

</div>

\_ROOT Version: 6.24/00  
\_Platform: Ubuntu 20.04.2 LTS  
\_Compiler: g++

I want to start out this post by saying I do not know anything about parallel programing other than it lets you run a program using multiple cores. I have code written with root and its only running in a single core. Is there going to be any way to run this code in multiple cores without changing the actual code (maybe there is some option with root), or am I going to have to add code to enable processing with multiple cores? If im going to have to add code, could someone link me to resource where I can learn about parallel programing or how to access it.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 28, 2021, 5:15am UTC](https://root-forum.cern.ch/t/parallel-programing-in-root/45560/2 "2021-06-28T05:15:40Z")

</div>

You may have a look at the [EnableImplicitMT documentation](https://root.cern/doc/master/namespaceROOT.html#a06f2b8b216b615e5abbc872c9feff40f).

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 28, 2021, 6:38am UTC](https://root-forum.cern.ch/t/parallel-programing-in-root/45560/3 "2021-06-28T06:38:48Z")

</div>

Hi @Mitchem ,  
you might want to take a look at [What is the best framework for multi-threading in ROOT? - #5 by eguiraud](https://root-forum.cern.ch/t/what-is-the-best-framework-for-multi-threading-in-root/41609/5) and [Multicore/multithreading](https://root-forum.cern.ch/t/multicore-multithreading/32205) .

Typically the largest gain will come from restructuring your code but depending on what your application does `EnableImplicitMT` might already provide some speed-up.

Cheers,  
Enrico
