hi, I am testing my site files in my own computer (xp+php+mysql). and my site needs many cronjob ( I test use pycron under xp operation)
When I open 20+ cronjob at the same time(one minute), my computer will very slow(cpu up to 100%). and sometimes it will cause some faults. (I check the resalt, sometimes 1 or 2 files were failed)
I call a command like:
30 * * * * "C:\\Program Files\\PHP5\\php.exe" E:\\www\\mysite\\file1.php
30 * * * * "C:\\Program Files\\PHP5\\php.exe" E:\\www\\mysite\\file2.php
30 * * * * "C:\\Program Files\\PHP5\\php.exe" E:\\www\\mysite\\file3.php
... ... //20+ files on minute 30, every hour
I want to ask. if I move my site files to the server with linux operation,(maybe I will rent a cloud serve) the cronjob speed will smoothly? And all the linux system support a cron command like:
30 * * * * sleep (7); "C:\\Program Files\\PHP5\\php.exe" E:\\www\\mysite\\file2.php
is ‘sleep’ command useful to reduce the cpu use percent?
Thanks.