# Utilize more than one CPU core when generating adaptive components

**URL:** <https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862>\
**Category:** Uncategorized\
**Created:** [April 5, 2017, 11:00pm UTC](https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862 "2017-04-05T23:00:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ibby](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@Ibby](https://forum.dynamobim.com/u/Ibby)\
**Post date:** [April 5, 2017, 11:00pm UTC](https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862/1 "2017-04-05T23:00:52Z")

</div>

Hi,

I am having dynamo read point information from an excel file and generate adaptive components in revit. I see that only one CPU core is being used. This computer has 2 cores. Is it possible for Revit/ dynamo to use both cores while creating these adaptive components to speed up this process?

Thanks,

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [April 6, 2017, 12:45am UTC](https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862/2 "2017-04-06T00:45:22Z")

</div>

I would say no

Revit is multi-threaded, but only for some operations. ADSK publish a list of what is/isn’t multi threaded

Andrew

---

<div class="post-metadata">

**Author:** ![Ibby](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@Ibby](https://forum.dynamobim.com/u/Ibby)\
**Post date:** [April 6, 2017, 1:45am UTC](https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862/3 "2017-04-06T01:45:14Z")

</div>

Generally trouble with running things on multiple cores is breaking tasks into independent blocks. I mean many of the tasks are not independent. However reading a row of points in excel and generating a adaptive component is fairly straightforward and independent. i.e each adaptive component is its own independent entity. There out to be a way for these to be processed in parallel by all the cores on the computer. Hopefully some C# genius on the forum is reading this post and can post a solution.

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [April 6, 2017, 2:16am UTC](https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862/4 "2017-04-06T02:16:38Z")

</div>

Please post your Dynamo graph- without that, no one will be able to help you make it as efficient as possible

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [April 6, 2017, 9:33pm UTC](https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862/5 "2017-04-06T21:33:13Z")

</div>

Divide the list in half (or quarters, or 8ths… 256ths if you would like) and run portions of the script on multiple systems using different user names on each one.

Or… and this is pure insanity… and it’s really risky… maybe I shouldn’t build this atom bomb… but… one could open multiple revit sessions on the same system each with a different user name, and then open the same dynamo graph, and run the first half (quarter, 8th, 256th) on one session, and the other on the next session, and so on…

If you do this please post a screenshot of your task manager’s performance page so i can go “oooooooo” and “aaaahhhhhh” for a few hours…

> **[Multiple sessions of Revit?](https://forums.augi.com/showthread.php?88659-Multiple-sessions-of-Revit)**
>
> Hi All, I'm wondering if it's really a good idea to have multiple sessions of Revit open at once. I ask this because of this rather large site plan we're working on. I would be treating it like multiple users accessing the file. When one session...

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [April 7, 2017, 3:35am UTC](https://forum.dynamobim.com/t/utilize-more-than-one-cpu-core-when-generating-adaptive-components/10862/6 "2017-04-07T03:35:45Z")

</div>

The API providing access to Revit’s DB is not “thread-safe”. If you try to access it with more than one threads, you’ll end up with memory corruptions.
