java - ThreadPoolExecutor.worker.run spends too much time -


i have several tasks executed in cachedthreadpool. after profiling found task runs 10% of time , other 90% used threadpoolexecutor$worker.run (i'm using jvisualvm profiling).

and here i'm stuck. can't figure out hell threadpoolexecutor$worker.run doing, why consumes time , how fix problem. need tasks run fast possible.

that's profiler says:

pool-2-thread-2                                          44542 ms (100%)     java.util.concurrent.threadpoolexecutor$worker.run   44542 ms (100%)         self time                                        39598 ms (88.9%)         myclass.run                                       4943 ms (11.1%) 

may self time means thread sleeping?

thanks in advance. p.s. please sorry stupid, i'm not great java programmer.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -