This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Getting the below in threadump. "EDU.oswego.cs.dl.util.concurrent.LinkedQueue.poll" is seen and have not used any such reference in pom file. Any help, how it refers to EDU package and how to proceed debugging
"Thread-66058" daemon prio=10 tid=0x00002ab9e3a14800 nid=0x4982 in Object.wait() [0x00002ab9f1243000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00002ab95ecfb180> (a java.lang.Object)
at EDU.oswego.cs.dl.util.concurrent.LinkedQueue.poll(Unknown Source)
- locked <0x00002ab95ecfb180> (a java.lang.Object)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor.getTask(Unknown Source)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
The class is from backport / concurrent .jar , it was the predecessor to the Java 5 concurrency classes and is pretty much the same code, give or the take the package names / one collection and the Java 5 has a habit of using a bit more memory. It was written by Doug Lea (I think ;-) ) when proposing the Java 5 classes I believe and is also used when you need to run Java 4 code that can use Java 5 like concurrency classes.
I'd just google it or JAD (decompile it) to view the code, though in this case just looking at the equivalent Java 5 class should be enough. You can step to say eclipse with JAD or other decompiler and you should be able to add breakpoints step wound the code base etc but ...
basically you have a thread pool that sits waiting for jobs, you add a job it excutes it on a thread and waits for the next one. Your thread is waiting for a task to come in to work on, that's all expected behavior.