Hui Huang wrote:
Joseph Shraibman wrote:

Alexander V. Konstantinou wrote:

Actually, thread priorities work fine in Linux.


No, they don't, not with the latest sun jdk on redhat 8.0.

Thread priority is just a hint (same applies to Thread.yield()).
While the jvm authors can't do anything about the kernel ignoring the priority, they *can* do something about Thread.yield(): make it the equivalent to sleep(1)

kernel space. JDK passes the priority information to the kernel,
How?

but they are ignored.

It may sound like a surprise, but most of the time kernel scheduler
can do a better job than human in prioritizing jobs.
Um, no.  The few cases I would set a priority I would have a good reason.

BTW does the jvm give threads with higher prio prefrence when delivering notify()'s?



--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to