Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-11

linux thread priority mapping

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Johannes Berg

Hi,

The current mapping appears to be {from pthread.inc}

const
{ I Don't know idle or timecritical, value is also 20, so the largest other
possibility is 19 (PFV) }
Priorities: array [TThreadPriority] of Integer =

   (-20,-19,-10,9,10,19,20);
                                                                                But 20 doesn't even exist. I think more appropriate would be something like (-20, -19, -10, 0, 9, 18, 19).

I also don't see a reason why tpNormal should be "9" instead of "0".

johannes

http://www.sipsolutions.de/ GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc Key-ID: 9AB78CA5 Johannes Berg Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5

Reply by email

Peter Vreman
to Johannes Berg
Show quoted text 31 lines
Hi, The current mapping appears to be {from pthread.inc} const { I Don't know idle or timecritical, value is also 20, so the largest other possibility is 19 (PFV) } Priorities: array [TThreadPriority] of Integer (-20,-19,-10,9,10,19,20); But 20 doesn't even exist. I think more appropriate would be something like (-20, -19, -10, 0, 9, 18, 19). I also don't see a reason why tpNormal should be "9" instead of "0".

fine with me

Reply by email