A Java thread A fails to execute synchronized statement as another thread has got the monitor.
The thread A is queued by the JVM?
And how thread A is activated after, via 1) or 2) ?
- As soon as the monitor is released JVM will send up this signal , thread A may be activated
- the JVM will detect whether the monitor is available in a period of time, if the monitor is available, thread A may be activated