Grokking Java Interview Questions
0% completed
Reading a Heap Dump and a Thread Dump
"order-1001" #35 cpu=0.00ms elapsed=3.11s nid=63792 waiting for monitor entry java.lang.Thread.State: BLOCKED (on object monitor) at Shop.reserve(Shop.java:54) - waiting to lock <0x00000000fe823538> (a Stock)
This is one entry from a thread dump, a text that lists the threads of a Java process and the methods they are executing. The thread of order 1001 waits for a lock. Which thread holds that lock, and why does it not release it?
The answer is elsewhere in the same dump
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%