Example1
public void update() {
int temp = Data ;
//process temp
// other threads may be running
// what if another thread starts
// another update() ?
Data = temp ;
}
Previous slide
Next slide
Back to first slide
View graphic version