Home | Trees | Indices | Help |
---|
|
Class to handle multiple concurrent threads running on the same algorithm. @since: 0.0.1 @author: Hurng-Chun Lee @contact: hurngchunlee@gmail.com The class itself is a thread. To run it; doing the following: runner = MTRunner(myAlgorithm, myData) runner.start() ... you can do something in parallel in your main program ... runner.join() where 'myAlorithm' and 'myData' are two objects defining your own algorithm running on a dataset.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_attributes =
|
|
initializes the MTRunner object. Since: 0.0.1 Author: Hurng-Chun Lee Contact: hurngchunlee@gmail.com @param algorithm is an Algorithm object defining how to process on the data @param data is an Data object defining what to be processed by the algorithm |
gets the overall results (e.g. output) from the algorithm. |
joins the worker agents. The caller will be blocked until exceeding the timeout or all worker agents finish their jobs. |
|
_attributes
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Jun 25 10:35:18 2012 | http://epydoc.sourceforge.net |