+ repeat
+ {
+ completed = rep(FALSE, ............)
+ #while there is jobs to do (i.e. size of tmp "file" is greater than nbSeriesPerChunk),
+ #A) determine which tasks which processor will do (OK)
+ #B) send each (sets of) tasks in parallel
+ #C) flush tmp file (current parallel processes will write in it)
+ #always check "complete" flag (array, as I did in MPI) to know if "slaves" finished
+ }
+
+parallel::stopCluster(cl)