[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Compiled script priority under MacOS



At 8.15 +1000 1999.08.13, Peter Lanc wrote:
>I've a compiled script running under Mac Os 8.6 that I wish to run all the
>time
>in the background.
>Is there a way to set a low priority for it so it does not take much CPU time?
>At the moment I have a loop with a long delay in it but I can still 'feel' the
>application slowing down the computer.

Are you using sleep()?  If so, try using the Mac::Events module and the
function WaitNextEvent().  That might improve matters.  I don't know of any
way to set priorities in Mac OS, though.

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org