Apr
24
comment How to wait for all threads to finish, using ExecutorService?
Not a good idea, see stackoverflow.com/a/7271685/1166992 and the javadoc: "Returns the approximate number of threads that are actively executing tasks."
Apr
17
awarded Caucus
Apr
8
comment Convert InputStream to byte array in Java
Interesting thing, but you must know the exact length of the (part of the) stream to read. Moreover, the class DataInputStream is primary used to read primary types (Longs, Shorts, Chars...) from a stream, so we can see this usage as a misuse of the class.
Apr
8
answered Set VIM to open files in "read-only" mode by default?
Mar
31
comment Is possible to setting a color into JTree?
setBackground sets the background color of the tree, but not the one of the cells. The text of the node therefore still appears whith a white background.
Mar
24
awarded Supporter
Mar
23
answered Java shutdown hook call on windows shut down
Mar
22
revised java.exe does not end - only one OS-thread remains
deleted 300 characters in body
Mar
22
comment java.exe does not end - only one OS-thread remains
Even your application has several threads and one of them indefinitely waits on a condition, it doesn't mean that two threads (or more) blocks one other. Please take the time to read what a deadlock is before critizing all other developers for what they know, and not allege.
Mar
20
accepted Split SQL-INSERT into a Map columnames > values
Mar
20
comment Processing all exceptions in multiple streams
Do you really have a good reason to log all the exceptions - as well the catches ones as the other ones? Thousands ones occur in the background and you surely not want to know about them (just take the {{InterruptedException}} as example...
Mar
20
revised java.exe does not end - only one OS-thread remains
Edit about the response "one no-deamon thread is still running"
Mar
19
comment java.exe does not end - only one OS-thread remains
I don't think so, as the java.exe process only have one OS-thread (see above). I've already checked my code (I'm the java application developer and know what a watchdog is.)
Mar
19
comment java.exe does not end - only one OS-thread remains
I've already tried to debug the process. But it is not possible. Jstack could not attach to the application. It is logical, as the windows process only have a thread (instead of several for "still running" applications). The java.exe is in my case something like a zombie...
Mar
19
asked java.exe does not end - only one OS-thread remains
Mar
17
awarded Supporter
Mar
11
awarded Yearling
Mar
3
awarded Popular Question
Jan
24
awarded Yearling
Nov
13
comment how to change the name of a Java application process?
The feature has been removed in 2013: Changes in version 3.1.0-beta2 (20-08-2013) Removed the custom process name feature which was not compatible with newer Windows versions.
1 2 3 4 5