|
On Tuesday, June 12, 2012 12:33:07 PM UTC+12, Patrick wrote:
> Is there any way to write the disk in the background? I have a long job and it would be great if we could process the next data set while writing the last set disk. Having fwrite() return almost immediately would be the simplest fix, but I don't think thats possible. Would it be necessary to write a MEX function that spawned a seperate thread to handing the writing?
And this is the difficulty with parallelisation.
There are not many applications (in my experience) where the saving in computation exceeds the cost in communication between processors.
One application that does qualify is Monte Carlo modelling, where you can simply divide the number of runs between processors and avoid talking to anyone else until the end.
|