What if flushing takes longer than 700ms? Properly synchronise your threads, folks!
while (urinal.smellsLikeDeath()) {
Flusher flusher = new Flusher();
flusher.start();
try {
flusher.join();
} catch (InterruptedException e) {
callMario();
}
}
- flyx86
Please Signin or Signup to add a comment