There is the following task: On the server side, a two-dimensional array of 10,000 elements per 10,000 elements is stored in memory. A request comes from the client: you need to take the matrix, make some manipulations with it (delete some elements, the dimension changes) and apply the factor to it in the client request, then return the result.
Requests from multiple clients must be processed in parallel, not sequentially, each request in a separate thread. At the same time, the matrix changes the dimension only for a specific client, each new client needs to give the matrix with its original dimension for the calculation.
The question is how to do it. Use CopyTo - wildness for an array of this dimension. Maybe you can somehow clone it to give a copy of the original state of the matrix, without changing it itself?
CloneorCopyTo- Andrey NOP