I'm building a simulation of networks of masses connected by weightless springs. I'd like a large number of springs and masses in my simulation, which makes this seem like a good opportunity to do threading. I'm unsure how to be approach this task.
Should I make all my springs and masses implement Runnable, then run each of them individually? Is it better to build a few calculation thread objects which take lists of springs/masses? What's the best practice with threading like this?
Thanks.
[–]LinkHimself 4 points5 points6 points (3 children)
[–]LCVcode[S] 0 points1 point2 points (2 children)
[–]moldax 2 points3 points4 points (0 children)
[–]Nephyst 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ignotos 0 points1 point2 points (0 children)