Prev: return values from boolean
Next: How to use measure
From: Matthew on 11 Feb 2010 00:33 A quick question. I create a job localScheduler = findResource('scheduler', 'type', 'local'); localJob = createJob(localScheduler); and then create a few tasks for it for n = 1:Ntask createTask(localJob, @dtest, 1, {commonData, inputData(n)}); end and submit the job: submit(localJob); then I monitor the states of the tasks and find that for about 30 seconds, all of the tasks are pending (2 second pause between checks). For reference, once the tasks start to execute they take about 2 seconds each, while feval(@dtest, commonData, inputData(n)) requires about 0.5 seconds. All of the data being passed are small (e.g., structs with a few parameters in, and 4x4 matrices out). My question is: why do the tasks remain in the pending state for so long after the job starts running? Thanks, -Matt P.S. full code available on request! =)
|
Pages: 1 Prev: return values from boolean Next: How to use measure |