Results 1 to 3 of 3
Hello
How can i set the thread priorty in linux? I am usnig the apr libray functions to create the thread.
APR/Apache Portability Runtime library
Thanks
Ritesh...
- 06-30-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
How to set apr thread priority in linux
Hello
How can i set the thread priorty in linux? I am usnig the apr libray functions to create the thread.
APR/Apache Portability Runtime library
Thanks
Ritesh
- 07-02-2008 #2
What functions are you using from the library?
From the ones I've seen there is no way to set the thread priority using the APR library. You would have to write your own code to set the priorities. Read through the docs for the functions you use (I know APR docs are sparse but you might find something on another site). Also read through these tutorial/docs.
There is a Linux section on this one.
Thread Scheduling with pthreads under Linux and FreeBSD
This is a function that allows you to change the scheduling policy of a thread.
sched_setscheduler
- 07-03-2008 #3Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
I am using the apr_thread_create function to create the thread.


Reply With Quote