I want to use julia to write a code parallel reading data from txt file and saved into a big matrix.

However, I found the matrix seems to be distributed to each CPU and I need each CPU to be tremedous big. How can I prevent the matrix to be distributed?

This is the code

```
using DelimitedFiles
using LinearAlgebra
using Statistics
using JLD
N = 2120;
ins_force = zeros(N,3,5000);
Force = zeros(N,3,5000,3);
Threads.@threads for i = 1:3
start = time()
file = readdlm(string("Force",5000*(i-1),".txt"))
index = 1;
idx = 1;
while idx < size(file,1)
ins_force[:,:,index] = file[idx+1:idx+N,:];
index = index+1;
idx = idx +N+1;
end
time_end =time()
Force[:,:,:,i] = ins_force;
display(time_end-start)
end
```

I can use the cell and cell2mat to realize this by code

```
clc
clear
%% compute ins force
N = 2120;
list = dir(['./Force*'])
n = size(list,1)
index = 1;
Force = cell(1,1,200);
parfor i = 1:200
tic
A = textread(['./Force',num2str(5000*(i-1)),'.txt']);
index = 1
Force_temp= zeros(N,3,5000);
idx = 1;
while idx < size(A,1)
Force_temp(:,:,index) = A(idx+1:idx+N,:);
index = index+1;
idx = idx +N+1;
end
Force{1,1,i} = Force_temp;
toc
end
Force = cell2mat(Force);
```