davewolfs
December 23rd, 2009, 10:09 PM
Hey all,
Quick question.
I'm designing something where I have multiple threads between 100 and 2000 which are constantly processing data.
I'd like the ability to take snap shots of these calculations and aggregate them into a single value i.e. the entire sum of all data calculated by each thread over time x. Basically I'd like to take snapshots of the data currently processed by all threads and sum this information into a single value over a fix amount of time i.e. every 10 seconds.
If I'd like to do something like this in tandem, do you have any recommendations on what type of pattern or method I could use to accomplish this efficiently.
I appreciate your input.
Quick question.
I'm designing something where I have multiple threads between 100 and 2000 which are constantly processing data.
I'd like the ability to take snap shots of these calculations and aggregate them into a single value i.e. the entire sum of all data calculated by each thread over time x. Basically I'd like to take snapshots of the data currently processed by all threads and sum this information into a single value over a fix amount of time i.e. every 10 seconds.
If I'd like to do something like this in tandem, do you have any recommendations on what type of pattern or method I could use to accomplish this efficiently.
I appreciate your input.