Re:An introduction to parallel programming using Python's mu...
by chuckledog on Saturday July 12, 2014 @11:43PM
(#8026576)
Any thoughts how software-transactional memory might apply for a use case like this?
Re:An introduction to parallel programming using Python's mu...
by freyrs3 on Sunday July 13, 2014 @10:00AM
(#8027343)
STM is not a great fit for this kind of problem, there's no need for all the transaction machinery if the problem is embarrassingly parallel. In an ideal world what you want is threads which just split the work sections like they do in C/C++/Haskell.
Event based models only shine when you are doing IO-bound tasks. They won't help you when you are chewing CPU.
Threading models in Python aren't attractive because of the GIL. If you are doing a parallel matrix operation you can only ever use one CPU because of the GIL. Not attractive.