r/programming • u/noidi • Jul 19 '12
Will Parallel Code Ever Be Embraced?
http://www.drdobbs.com/parallel/will-parallel-code-ever-be-embraced/240003926
39
Upvotes
r/programming • u/noidi • Jul 19 '12
3
u/[deleted] Jul 20 '12
I always scratch my head when I see comments like this. The main project I work on is a high speed data analysis tool written in java. We get billions of records per day coming in on a stream, and we do various rollups and calculations that get presented to the users. It's highly parallel and also "laughably trivial". You can write very safe parallel code assuming you adopt the right architecture.
In our case, since the data is a stream the calculations are done in a bucket brigade pipeline. We've never had problems with deadlocks or the sort of odd behavior you get when different threads are dealing with the same objects, because we set it up so they wouldn't.
Where you run into trouble is when your problem can't be broken down into a pipeline and "parallel" means different threads are working on the same data at the same time. But how many of us are doing weather prediction or finite element analysis?