Synchronization - Example
public LinkedCell next() {
return next_;
}
public boolean includes(double x) {
synchronized(this) {
if (value_ == x)
return true;
}
if (next() == null)
return false;
else
return next().includes(x);
}
Previous slide
Next slide
Back to first slide
View graphic version