Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I need some inputs on pthread priority. Thread A which is of priority 5 is creating thread B which is of priority 3. In the run function of thread ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    28

    pthread priority

    Hi,

    I need some inputs on pthread priority.

    Thread A which is of priority 5 is creating thread B which is of priority 3.

    In the run function of thread B, I just put while(1) and I run this application in background.

    Once the thread B is created, I couldnt give any inputs in teraterm.

    Can you please let me know, what might be the issue

  2. #2
    Just Joined!
    Join Date
    Dec 2007
    Posts
    28
    Hi,
    If a low priority thread in user application tries to call system function eg(system("ifconfig"), then how schduler handles it.

    My understanding is even though it is low priority thread, it blocks other high priority threads till the system function comes out. Is my understanding correct?

    If yes, is it possible to make the high priority thread to run???

Posting Permissions

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