Re: Skipping CRON for Now... But...
- Posted by Robert Craig <rds at RapidEuphoria.com> Sep 16, 2005
- 455 views
cklester wrote: > Can I create a program that just sits there and every, say, minute, sends out > an > email, but doesn't waste system resources between each minute? Will sleep() do > that efficiently enough? Yes. sleep(60) will tell the operating system to run other programs for 60 seconds, before returning to your program. Your program will not burn up any CPU time while sleeping. That might be a good way of sending out a bunch of e-mails without overloading the system and getting your hosting company annoyed with you. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com