IT
안드로이드 wait() / notifyAll() 사용 예제.
절믄유월
2022. 8. 1. 12:20
안드로이드 wait() / notifyAll() 사용 예제.
public synchronized void waitStatus() {
try {
wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public synchronized void notifyStatus() {
notifyAll();
}
반응형