Re: Re: Limiting Cpu usage

From: Date: Wed, 13 Apr 2005 00:03:41 +0000
Subject: Re: Re: Limiting Cpu usage
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-212969@lists.php.net to get a copy of this message
Hi, Wednesday, April 13, 2005, 8:20:46 AM, you wrote: z> Yeahh! i have made it.... z> i can slow down a php script , as i edited the zend engine source to usleep z> every 1000 low-level instructions.... z> now, is there a way to determine to check my cpu load and adjust it by that z> so if nothing (or very low cpu usage) is running on the system he'll get z> extra power? On Linux you can cat /proc/loadavg to get the current load (3rd number in) -- regards, Tom

« previous php.general (#212969) next »