Re: Sockets and Sleep Question

2002-10-04 Thread Michael Fowler
On Thu, Oct 03, 2002 at 05:12:38PM -0700, Jessee Parker wrote: > I will definitely take a look at this. How do you determine what your > current "nice" status is? nice, with no arguments, will give you your current nice level. ps and top will diplay the nice level (or sometimes priority) of proc

Re: Sockets and Sleep Question

2002-10-03 Thread Jessee Parker
> On Thu, Oct 03, 2002 at 10:10:34AM -0700, Jessee Parker wrote: > > At the top of the loop, I check the system uptime to get the load average > > so I can have the program sleep for 5 seconds to let things stabilize a > > bit. > > I suspect an easier way of doing this would be to nice yourself do

Re: Sockets and Sleep Question

2002-10-03 Thread Michael Fowler
On Thu, Oct 03, 2002 at 10:10:34AM -0700, Jessee Parker wrote: > At the top of the loop, I check the system uptime to get the load average > so I can have the program sleep for 5 seconds to let things stabilize a > bit. I suspect an easier way of doing this would be to nice yourself down really l

Sockets and Sleep Question

2002-10-03 Thread Jessee Parker
I have a program that uses the Mail::Sender module that loops through and gets the names and e-mail addresses out of a MySQL database. At the top of the loop, I check the system uptime to get the load average so I can have the program sleep for 5 seconds to let things stabilize a bit. When