class TaskJuggler::BatchProcessor

The BatchProcessor class can be used to run code blocks of the program as a separate process. Mulitple pieces of code can be submitted to be executed in parallel. The number of CPU cores to use is limited at object creation time. The submitted jobs will be queued and scheduled to the given number of CPUs. The usage model is simple. Create an BatchProcessor object. Use BatchProcessor#queue to submit all the jobs and then use BatchProcessor#wait to wait for completion and to process the results.