I think you could rephrase that as "In Java, Thread priorities don't
work". :-) The language guarantees about thread priorities are probably
weaker than you expect. Quoth the language spec:

"Every thread has a priority. When there is competition for processing
resources, threads with higher priority are generally executed in
preference to threads with lower priority. Such preference is not,
however, a guarantee that the highest priority thread will always be
running [...]"

This means (among other things) that either execution of your test
program is valid, and if you are relying on one or the other your
program is making unportable assumptions.


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

Reply via email to