Skip to contentSkip to conversation

Difference in priority

DISCUSSION Ankit Jain 2 participants 5 messages Oct 11, 2004 – Oct 12, 2004

lore
Share & tools
lore

Ankit Jain

author
#0 lore raw

hi

if somebody knows the difference b/w /PRI of both these commands because both give different results

ps -Al
&
top

as per priority rule we can set priority upto 0-99

but top never shows this high priority

thanks

ankit

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

#1 lore raw
Quoted 11 lines · Ankit Jain

hi

if somebody knows the difference b/w /PRI of both these commands because both give different results

ps -Al
& top

as per priority rule we can set priority upto 0-99

but top never shows this high priority

Priority values 0-99 are real time ones and 100-139 are normal scheduling ones. RT scheduling does not change dynamic priority while running wheras normal scheduling does (between 100-139). top shows the value of the current dynamic priority in the PRI column as the current dynamic priority-100. If you have a real time task in top it shows as a -ve value. ps -Al seems to show the current dynamic priority+60.

Con

#2 lore raw
Quoted 10 lines · Con Kolivas
Quoted 8 lines · Ankit Jain

hi

if somebody knows the difference b/w /PRI of both these commands because both give different results

ps -Al
& top

Quoted 6 lines
Quoted 2 lines

as per priority rule we can set priority upto 0-99 but top never shows this high priority

Priority values 0-99 are real time ones and 100-139 are normal scheduling ones. RT scheduling does not change dynamic priority while running wheras normal scheduling does (between 100-139). top shows the value of the current dynamic priority in the PRI column as the current dynamic priority-100. If you have a real time task in top it shows as a -ve value. ps -Al seems to show the current dynamic priority+60.

That should read dynamic priority-60 in the PRI column.

Cheers,
Con

author
#3 lore raw

Sorry but iu could not get why are you adding and subtracting this 60 in priorities. that corelation i had also got but could not understrand whats this 60? and also what is this dynamic priority? hows different from normal priority

thanks

ankit

Quoted 27 lines · --- Con Kolivas
Quoted 6 lines · Con Kolivas
Quoted 4 lines · Ankit Jain

hi

if somebody knows the difference b/w /PRI of both
these commands because both give different

results

Quoted 5 lines
Quoted 5 lines

ps -Al
& top

as per priority rule we can set priority upto

0-99

Quoted 4 lines
Quoted 1 line

but top never shows this high priority

Priority values 0-99 are real time ones and

100-139 are normal

Quoted 1 line

scheduling ones. RT scheduling does not change

dynamic priority while

Quoted 1 line

running wheras normal scheduling does (between

100-139). top shows the

Quoted 1 line

value of the current dynamic priority in the PRI

column as the current

Quoted 1 line

dynamic priority-100. If you have a real time task

in top it shows as a

Quoted 9 lines
Quoted 1 line

-ve value. ps -Al seems to show the current

dynamic priority+60.

That should read dynamic priority-60 in the PRI
column.

Cheers,
Con

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

#4 lore raw
Quoted 5 lines · Ankit Jain

Sorry but iu could not get why are you adding and subtracting this 60 in priorities. that corelation i had also got but could not understrand whats this 60? and also what is this dynamic priority? hows different from normal priority

Dynamic priority is the current priority the scheduler has allocated to a task. It uses it to decide which task to go next; the lower the number the better it's priority so it goes first. The subtracting 100 and 60 is just what the userspace tools do to represent an obviously complicated value.

Please don't top post. It makes it hard to respond appropriately and follow email threads.

Cheers,
Con

Quoted 54 lines

thanks

ankit

Quoted 48 lines · --- Con Kolivas
Quoted 7 lines · Con Kolivas
Quoted 4 lines · Ankit Jain

hi

if somebody knows the difference b/w /PRI of both
these commands because both give different

results

Quoted 4 lines
Quoted 4 lines

ps -Al
& top

as per priority rule we can set priority upto

0-99

Quoted 4 lines
Quoted 1 line

but top never shows this high priority

Priority values 0-99 are real time ones and

100-139 are normal

Quoted 1 line

scheduling ones. RT scheduling does not change

dynamic priority while

Quoted 1 line

running wheras normal scheduling does (between

100-139). top shows the

Quoted 1 line

value of the current dynamic priority in the PRI

column as the current

Quoted 1 line

dynamic priority-100. If you have a real time task

in top it shows as a

Quoted 1 line

-ve value. ps -Al seems to show the current

dynamic priority+60.

That should read dynamic priority-60 in the PRI
column.