As the question says is there any advantages or disadvantages for this:
synchronized (monitor) {
try {
monitor.wait(1);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
Instead of using this:
Thread.sleep(1);