|
-
Jun 5th, 2005, 06:02 PM
#1
Re: thread priority
Sure, make it active. I believe the active program always has a slightly higher priority than any of the others. Other than that, if you think about it, you will realize that there would be a problem with such a thing. If there were global priorities, and two were set at the highest level, what would happen? The OS would have to determine which one would get the highest priority, or else they would both have high priority. In such a situation, there would be a slight incentive for some programs to be labeled as less than the highest priority (but you can do that already by making a lower priority thread), and a great incentive for ALL other programs to be tagged with the highest priority. After all, who would accept a 'normal' priority level for their program knowing that it would perform at a potentially unacceptable level on systems that have 'high' priority apps running?
Basically, you are at the highest priority unless you say otherwise, because that is how it would end up. Having said that, there are other things you can do, like grab exclusive control of the display (which renders all other GUI driven programs automatically lower priority), and there are system processes that are at a higher priority.
My usual boring signature: Nothing
 
-
Jun 5th, 2005, 07:16 PM
#2
Thread Starter
Fanatic Member
Re: thread priority
Hmmm.... I guess that is logical. In the book I have, there is a window that it says you can pull up (I haven't tried it yet) that shows all the apps/threads currently running and most of them showed a priority level of normal. I think there was only 2 or 3 that had a high priority. As for the OS determining which has highest, I don't know much about that. I'm new to this stuff, but I did do some programming a number of years ago in which I set priorities in a custom C environment. I could set as many high as I wanted and as many low as I wanted. The way it worked is that it would go through all the high priority items, then execute a low priority item, then through all the high priority items, then a low... and so on. I wondered if Windows did something similar... but I am learning so it's nice to have you folks out there to answer questions like this.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|