K
Kevin
I think the CUP needs to load the data structure to its CPU cache in
order to operate them, right?
So when we have a java array, for example:
int[] myArray = new int[2000];
When I want to update one of its values, for example:
myArray[1000] = myArray[1000] + 1;
In order to process this line, will the CPU load the whole array into
its CPU cache to process? Or it can just load that particular item to
its cache to update it?
Thanks.
order to operate them, right?
So when we have a java array, for example:
int[] myArray = new int[2000];
When I want to update one of its values, for example:
myArray[1000] = myArray[1000] + 1;
In order to process this line, will the CPU load the whole array into
its CPU cache to process? Or it can just load that particular item to
its cache to update it?
Thanks.