Michael Smith wrote:
That may be true for Linux--which only has setpriority(2) available to the common user--but Solaris and Windows JVMs can conceivably support raising the Java Thread priority.Remy Maucherat wrote:I was wondering about how expensive the Thread.setPriority method is, and to which extent it does what it advetises.The extent to which it has an effect is very much platform (and probably JVM) dependent. It's also dependent on the permissions a user has - on many (all?) unix systems, only root may set a process or thread to higher than normal priority [...]
I suspect that this will mean that your suggested use of these calls will [...] have no effect [...] on most common JVM implementations.
[...] it's pretty unlikely to make any noticable difference in performance.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
