Re: on renice
Re: on renice
- Subject: Re: on renice
- From: Axel Luttgens <email@hidden>
- Date: Sat, 19 Oct 2002 15:52:10 +0200
Just thinking very very loudly (noisily ?) - didn't any tests :
roy whelden wrote:
[snip]
Would it not seem, then, that +20 is indeed the highest priority and
-20 is the lowest, and not the other way around?
I would be interested whether other people could reproduce these
results.
AppleScript Odometer:
delay 90 --allowing me the time to set the renice command
set s to current date
repeat 1000 times
tell application "Finder"
--get the finders name
name
end tell
end repeat
set e to (current date) - s
display dialog "Average speed was " & 1000 / e & " events per second"
Your "Speedometer" (as corrected by your later post) attempts to check
an application's speed by sending an event to another application (here,
the Finder).
Let's suppose a -20 nice value makes your Speedometer run very fast.
But then all other processes run slower.
So, it could be that your Speedometer waits (very fast) for the other
apps to respond (very slowly).
Could be a matter of balance...
Perhaps a better test would consist, for preliminary checks, of a script
just performing heavy calculations in pure applescript, with no calls to
osaxen (such as standard additions).
Axel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >on renice (From: roy whelden <email@hidden>) |