Find the answer to your Linux question:
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...
  1. #1
    Just 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

  2. #2
    Just Joined! mitchpotter's Avatar
    Join Date
    Jan 2008
    Location
    Orlando
    Posts
    19
    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

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    15
    I am using the apr_thread_create function to create the thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...