9 int *counter
= (int *) p
;
17 unsigned x
= i
% (sizeof(array
)/sizeof(array
[0]));
18 /* VRP could prove that x is within [0,16], but until then, the
19 following access will ensure that array[] is registered to
23 sched_yield (); /* sleep (1); */
35 pthread_t threads
[NT
];
42 rc
= pthread_create (& threads
[i
], NULL
, func
, (void *) & counts
[i
]);
48 rc
= pthread_join (threads
[i
], NULL
);
50 printf ("%d%s", counts
[i
], (i
==NT
-1) ? "\n" : " ");
56 /* { dg-output "100 100 100 100 100 100 100 100 100 100" } */
57 /* { dg-repetitions 20 } */
58 /* { dg-timeout 10 } */