Hi,
I am running a php shell script as part of a wider program.
Basically, it runs in an infinate loop to see if a piece of data exists. If it does, it processes the data, if it doesn't, it falls back into the query loop.
I have tested the process using the data within a mysql table or within a text file stored on a local dir. Here be my problem:
using the mysql_query, processor usage is up to 15% in the infinate loop (using the text file, it is 100% using a file_exists loop).
15% i guess is not too bad but i will need over 20 of these query scritps running at the same time. Is there a better way to do this, to limit the amount of processor usage each script/query uses?
Many Thanks in Advance...
ChaosT