the use of getpriority and setpriority

the use of getpriority and setpriority

Post by Jenn » Tue, 30 Apr 2002 12:12:47



Folks,

I am using linux 2.2.26 and I would like to use setpriority to change
the base time quantum to 50ms (5 ticks). I think the  scale of -20 to
19 in setpriority and the scale 0-40 internal confuses me. I went into
sys_setpriority() and I think I should use setpriority(15) rather than
setpriority(5). Using setpriority(15) it should change it to 5. But
when I call getpriority, it gives me 15. In sys_getpriority, it
somehow says that it adds 20 to the priority  to return a vaule
between 0-40, which is not. I am not sure how this works?

Jenny

 
 
 

1. Solaris equivalent to SunOS getpriority/setpriority

Does DVR4/Solaris have an equivalent for the above SunOS library functions?

Thanks,
James
---
.........................................................................
 James Drenter               \\    Everywhere is walking distance       \\


    http://diogenes.cs.clemson.edu/~roofus/roofus.html \\       Wright     \\
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2. Can I use Allow/Deny in .htaccess based on the referer?

3. about getpriority and setpriority

4. solaris equivalent of /proc/cpuinfo?

5. Matrox Mystique ands X.

6. Better access to "/proc" ?

7. setpriority(...), getpriority(..), nice(.)

8. obscure port 873

9. getpriority problem

10. setpriority() question

11. setpriority() equivalent in Solaris2

12. setpriority -> priocntl

13. Linux Kernel Patch; setpriority