# Best ROOT version for multi-threading

**URL:** <https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147>\
**Category:** Newbie\
**Tags:** root\
**Created:** [July 12, 2019, 9:44am UTC](https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147 "2019-07-12T09:44:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aaron/32/19136_2.png) [@Aaron](https://root-forum.cern.ch/u/Aaron)\
**Post date:** [July 12, 2019, 9:44am UTC](https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147/1 "2019-07-12T09:44:57Z")

</div>

Hi there,

I would like to know which version of ROOT for Windows is better for multi-threading. I’m currently using VS 2019 at the moment and ROOT 6.18 but I also have VS 2013 and ROOT 5.34/36.

I would like to create a program with multiple threads and wonder which is the best option and whether the new ROOT 6.18 for Windows is stable.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 12, 2019, 9:46am UTC](https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147/2 "2019-07-12T09:46:57Z")

</div>

Hi,

ROOT 6 on Windows is still in a “preview” stage, but you could try and let us know if you encounter any difficulties

Cheers, Bertrand.

---

<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:** [July 12, 2019, 9:49am UTC](https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147/3 "2019-07-12T09:49:27Z")

</div>

About v5 vs v6, there is little to no thread-awareness in ROOT5 (i.e. use multi-threading at your own risk, and the amount of global state in ROOT will not help). ROOT6 introduced `ROOT::EnableThreadSafety()` and a few more features that should help with multi-thread programs.

I’m not sure how much of that runs fine on Windows, @bellenot knows best

---

<div class="post-metadata">

**Author:** ![Aaron](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aaron/32/19136_2.png) [@Aaron](https://root-forum.cern.ch/u/Aaron)\
**Post date:** [July 12, 2019, 9:55am UTC](https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147/4 "2019-07-12T09:55:05Z")

</div>

Thanks for the answers.

I’m looking for stability for the time being since I’m fairly new to ROOT however once I get to grips with multi-threading I can try and implement the program in ROOT6.

So the current state suggests that ROOT6 is more suitable for multi-threading but its stability is undefined on Windows and ROOT5 has little thread-awareness but has defined stability on Windows.

---

<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:** [July 12, 2019, 10:02am UTC](https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147/5 "2019-07-12T10:02:31Z")

</div>

That’s correct. You can also install ROOT in the Windows subsystem for Linux (WSL): [Complete ROOT Installation Instructions for WSL (Ubuntu 18.04 on Windows 10)](https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132) and that will be as stable as any other linux installation
