Counter Example
int counter=0;
main() {
thread* t1 = thread_fork(count);
thread* t2 = thread_fork(count);
}
void count() {
int i;
for(i=0; i i++)
counter++;
}
Previous slide
Next slide
Back to first slide
View graphic version