generative modeling for Rhino
Is multi-threading even possible in Grasshopper?
Tags:
Permalink Reply by Damien Alomar on May 7, 2011 at 12:48pm 
Not entirely true. Most of the geometry operations are threadsafe. Just don't start messing with the RhinoDoc while in threads.
I've been working on multithreaded python scripts lately and may have something to show in the near future.
Permalink Reply by Damien Alomar on May 7, 2011 at 7:58pm
Permalink Reply by Damien Alomar on May 7, 2011 at 7:57pm
Permalink Reply by robert cervellione on May 7, 2011 at 6:21pm also you may want to check out the Parallel library in .net 3.5 or 4.0. they allow you to do simple for and foreach loops without the need for thread managment.
the part i find difficult is making everything synchronous because current easy methods for multi threading are not. meaning that that the result will be out of order which for a lot of things it is important to maintain order.

Here's a python sample that uses the Parallel library that Robert mentioned.
http://python.rhino3d.com/entries/607-Multithreaded-Python
You're going to want to have at least the May 31st, 2011 WIP of Rhino 5 to test.
Added by David Stasiuk 8 Comments 24 Likes
Added by stefano 5 Comments 8 Likes
© 2013 Created by Scott Davidson.
Powered by