1. Skipping CRON for Now... But...
- Posted by cklester <cklester at yahoo.com> Sep 16, 2005
- 446 views
- Last edited Sep 17, 2005
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? -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
2. Re: Skipping CRON for Now... But...
- Posted by Robert Craig <rds at RapidEuphoria.com> Sep 16, 2005
- 456 views
- Last edited Sep 17, 2005
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