 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Matthias Guest
|
Posted: Tue Oct 28, 2003 2:09 pm Post subject: Thread priority |
|
|
Hi there,
I've got a fundamental question which no tutorial was yet able to give
me an answer. Suppose I'd like to start a Java-App here on my machine
and give it a very low (maybe the lowest) thread-priority, that is,
setPriority(...).
Does it mean that this thread is heaving the lowest priority in my
SYSTEM or JUST in the JVM? In the latter case, the JVM would be
working as an ordinary process without having a lower priority than
other processes. In other words: Does Java (the JVM) work the same way
no matter how I set up the thread-priority?
Thanks for your response!
90210
|
|
| Back to top |
|
 |
Brad BARCLAY Guest
|
Posted: Wed Oct 29, 2003 1:07 am Post subject: Re: Thread priority |
|
|
Matthias wrote:
| Quote: | Hi there,
I've got a fundamental question which no tutorial was yet able to give
me an answer. Suppose I'd like to start a Java-App here on my machine
and give it a very low (maybe the lowest) thread-priority, that is,
setPriority(...).
Does it mean that this thread is heaving the lowest priority in my
SYSTEM or JUST in the JVM? In the latter case, the JVM would be
working as an ordinary process without having a lower priority than
other processes. In other words: Does Java (the JVM) work the same way
no matter how I set up the thread-priority?
|
The answer is undefined. It depends completely on the behaviour of the
thread subsystem in the underlying OS (or JVM thread implementation).
Brad BARCLAY
--
=-=-=-=-=-=-=-=-=
From the OS/2 WARP v4.5 Desktop of Brad BARCLAY.
The jSyncManager Project: http://www.jsyncmanager.org
|
|
| Back to top |
|
 |
Greg Guest
|
Posted: Wed Nov 05, 2003 10:42 pm Post subject: Re: Thread priority |
|
|
i would be guessing, but i'd rekon it would be the jvm, as it manages
the java program running. and there would only be 1 instance of the jvm
running when u execute the java program within the o/s
Brad BARCLAY wrote:
| Quote: | Matthias wrote:
Hi there,
I've got a fundamental question which no tutorial was yet able to give
me an answer. Suppose I'd like to start a Java-App here on my machine
and give it a very low (maybe the lowest) thread-priority, that is,
setPriority(...).
Does it mean that this thread is heaving the lowest priority in my
SYSTEM or JUST in the JVM? In the latter case, the JVM would be
working as an ordinary process without having a lower priority than
other processes. In other words: Does Java (the JVM) work the same way
no matter how I set up the thread-priority?
The answer is undefined. It depends completely on the behaviour of
the thread subsystem in the underlying OS (or JVM thread implementation).
Brad BARCLAY
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|