On Wed, Nov 12, 2008 at 8:12 AM, Mr. Gecko [EMAIL PROTECTED] wrote:
Even that command says it's 0, so I'm thinking that virtual pc is using some
unknown way of changing how much processor they use.
Threads can individually be created with different priorities. In
reality threads are the real
Ok thanks.
On Nov 12, 2008, at 1:10 PM, Shawn Erickson wrote:
On Wed, Nov 12, 2008 at 8:12 AM, Mr. Gecko [EMAIL PROTECTED]
wrote:
Even that command says it's 0, so I'm thinking that virtual pc is
using some
unknown way of changing how much processor they use.
Threads can individually be
Ok I'm not sure if it worked, but when I change the priority in my app
it stays the same for that app even after I relaunch my app so that is
a good sign. Would you know of a good way to test it out so I know if
it works?
Thanks,
Mr. Gecko
___
hmm it appears to say 0 for virtual pc. I wonder what virtual pc does
because it seems to work.
On Nov 11, 2008, at 5:19 PM, Mr. Gecko wrote:
Ok I'm not sure if it worked, but when I change the priority in my
app it stays the same for that app even after I relaunch my app so
that is a
A priority of 0 is the default unless a process was launched by a process
that had a different priority, and then it would have that priority as well.
I'm afraid I don't follow what you're doing and what values you're seeing,
based on your use of that and my app. You can use the Unix command ps
The function you want is getpriority, but there are limits to what you can do
on changing a process's priority; if I recall, you can lower it (going from 0
to 1 or 20), but you can't raise it (going from 0 to -20) without admin/sudo
privileges. My quick-and-dirty app (it's really only
so you can't do anything really without adium permissions. I guess
that isn't a problem, I can have a preference for enabling and
disabling so it doesn't ask for password every boot (of course
disabled by default).
is getpriority like this
int pri = getpriority(PRIO_PROCESS, pid);
and does