Optimistic Control - Example
public class Optimistic {
private State currentState_;
protected synchronized boolean commit(State assumed, State next) {
boolean success = (currentState_ = assumed);
if (success)
currentState_ = next;
return success;
}
}
Previous slide
Next slide
Back to first slide
View graphic version