Tuesday, November 29, 2011

When a thread blocks on I/O, what state does it enter

When a thread blocks on I/O, it enters to BLOCKED state. A thread enters WAITING state, while a thread calls wait(), and it will come back to READY state, while other threads call notify() or notifyAll(). The wait-notify model is called monitor pattern.
Category:Java Interview Questions

No comments:

Post a Comment