Skip navigation


3055 Views 0 Replies Latest reply: Jan 6, 2012 4:19 PM by cirrusio RSS
cirrusio Calculating status...
Currently Being Moderated

Jan 6, 2012 4:19 PM

Worker Pool

While attempting to fix an existing data acquisition architecture that I am not happy with, I ran across this article by Tomi Maila as well as this discussion concerning a design for parallel tasks using objects and recursion called a worker pool.  This peeked my interest, given that I am dealing with asynchronous processes that require tight timing and maximum concurrency.  However, for my application, each task had certain data associated with it that ultimately needed to be aggregated and aligned properly (to produce something that looked like regular output) before it could be handled by the larger program.  I initially set this up with LV2 style functional globals, but was never really happy with the outcome.  In an attempt to utilize this idea of a worker pool which might be able to keep track of it's state, I came up with something that utilized data value references for maintaining a common data structure across all actions.  Check out the code below and if you get a chance, provide some thoughts on it.  Cheers, Matt




Interface VI


Worker Pool VI


More Like This

  • Retrieving data ...

Bookmarked By (0)