AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Thread priority

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.misc
View previous topic :: View next topic  
Author Message
Matthias
Guest





PostPosted: Tue Oct 28, 2003 2:09 pm    Post subject: Thread priority Reply with 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?

Thanks for your response!
90210
Back to top
Brad BARCLAY
Guest





PostPosted: Wed Oct 29, 2003 1:07 am    Post subject: Re: Thread priority Reply with quote



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





PostPosted: Wed Nov 05, 2003 10:42 pm    Post subject: Re: Thread priority Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.misc All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.