Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > Pthread Priorit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 4013 of 4179
Post > Topic >>

Pthread Priority Test

by linux_newbie84 <kanagarajan.ji@[EMAIL PROTECTED] > Sep 9, 2008 at 12:15 PM

Hi all,

I'm creating Two threads T1,T2 with schedule policy SCHED_RR.
The priority assigned to T1 is 4 and T2 is 10.

Does my following assumptions are correct ?

1 ) T2 will run with the highest priority.
2)  Will the Pre-emption occur in this scenario:
             when the thread T2 waits for the resource once its
available ,
             meanwhile T1 continues its work or idle.Once the resource
is made available
             T2 starts executing the work with high bandwidth compared
to T1.

thanks.
 




 1 Posts in Topic:
Pthread Priority Test
linux_newbie84 <kanaga  2008-09-09 12:15:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 22:54:39 CST 2008.