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()).
It's up to the underlying system (in this case, the Linux kernel
scheduler) to decide whether or not to honor thread priorities.
On Linux, threads are cloned processes and are scheduled in the
kernel space. JDK passes the priority information to the kernel,
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. After all,
only kernel scheduler knows how threads interact with each other
and/or with other applications.

-hui

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




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

Reply via email to