Shutdown is busy updating waiting for lock Adult dating sites in meadow utah
If I comment this line: $ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java Hot Spot(TM) Server VM (build 20.1-b02, mixed mode) $ uname -a Linux XPSG 2.6.32-5-686-bigmem #1 SMP Sun May 6 UTC 2012 i686 GNU/Linux Full thread dump Java Hot Spot(TM) Server VM (20.1-b02 mixed mode): "pool-1-thread-1" prio=10 tid=0x08780c00 nid=0x32ee runnable [0x6fdcc000] Thread Pool Executor$Worker.run(Thread Pool Executor.java:907) at It is continuously checking to see if a task is ready to be executed if it isnt it will try again until the elapsed time has passed for the task to be scheduled.
Thread.run(Thread.java:662) "Low Memory Detector" daemon prio=10 tid=0x0874dc00 nid=0x32ec runnable [0x00000000] State: RUNNABLE "C2 Compiler Thread1" daemon prio=10 tid=0x0874c000 nid=0x32eb waiting on condition [0x00000000] State: RUNNABLE "C2 Compiler Thread0" daemon prio=10 tid=0x0874a000 nid=0x32ea waiting on condition [0x00000000] State: RUNNABLE "Signal Dispatcher" daemon prio=10 tid=0x08748800 nid=0x32e9 waiting on condition [0x00000000] State: RUNNABLE "Finalizer" daemon prio=10 tid=0x0873a000 nid=0x32e8 in Object.wait() [0x70360000] There is a trade off for shutting down a scheduled thread pool (this trade off is imposed by the implementation).
Just push the "Power On/Off" button for a few seconds. In Activity Monitor you can actually take a Sample of the process what's doing.
It is to busy spin until the task is ready to schedule or This is a platform specific problem.
When I ran your test program on my machine, the CPU usage was approximately zero in the 10 second shutdown period ... I did a cursory search of the Java bugs database, and nothing relevant showed up.
EDIT Since this does not work for you you can use the Activity Monitor or "ps -ef" to find the processes and kill them.
Actually, although my real code is a bit more complex than that, I could isolate the issue in those lines. Thread Pool Executor.await Termination(Thread Pool Executor.java:1253) at main. Native Method Accessor Impl.invoke(Native Method Accessor Impl.java:39) at sun.reflect.