SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
Therefore, although you use notify all, when the condition is again evaluated, the thread gets back to the waiting state if its record is still locked.
...the current thread gives up the CPU and consumes no CPU cycles until the record is unlocked.
SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
Any attempt to lock a resource that is already locked should cause the current thread to give up the CPU, consuming no CPU cycles until the desired resource becomes available.
SCJP, SCJD, SCWCD, OCPJBCD
You got style baby! More than this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|