This question is closed. Reopen it to edit or answer.
When working with, e.g., two parallel processes, with the PCT, is the RAM memory partitioned in two?
- Before starting the computation by the two workers, is the RAM memory, available for MATLAB, partitioned into two, as the number of called workers, in order to assign each of them the memory resources? If it is, is it done just when calling the matlabpool open 2 command?
- Are the matrices A and B sent serially (in time) to each workers? I mean, first A, B and vec(1,1) are sent to worker1 (corresponding to the parfor index i=1) and secondly A, B and vec(1,2) to worker2, or vice versa (I know the order is not relevant). Or the other way around: assuming A and B won't be modified into my_fnc, and MATLAB recognizes it, can A and B be read at the same time by the two workers, whilst vec has to be sent serially (in time) since it has two different values?