ganga.GangaCore.Core.GangaThread.MTRunner.MTRunner module

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.