Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, jst basic clarification. if A thread is of priority 1 and B thread is of priority 2, then which one will execute first.? i believe A is highest priority. ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    28

    pthread priority value

    Hi,

    jst basic clarification.

    if A thread is of priority 1 and B thread is of priority 2, then which one will execute first.?

    i believe A is highest priority. Is my understanding correct?

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    It's not that simple, of course, but in general, the greater the number (that is, the farther away this positive number is from zero), the "better" the priority for that thread, which is rather the opposite of what you guessed.

    Hope this helps.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

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