Ребзя, подскажите
Synchronise the two following methods in the class, so that every thread entering the
“blockUntilDone()” method will be blocked, until the “doOnce()” method is called by some other
thread. If “doOnce()” was called, any thread entering the “blockUntilDone()” method is free to
continue.
Public class Synchronised {
public void diOnce() {
}
public void blockUntilDone() {
}
}