os_kernel_lab/related_info/lab3/locality/badlocality.c
2015-03-23 09:11:45 +08:00

13 lines
253 B
C

#include <stdio.h>
#define NUM 1024
#define COUNT 10
int A[NUM][NUM];
void main (void) {
int i,j,k;
for (k = 0; k<COUNT; k++)
for (j = 0; j < NUM; j++)
for (i = 0; i < NUM; i++)
A[i][j] = 0;
printf("%d count computing over!\n",i*j*k);
}