Gibby wrote: |
| I find it weird that a simple test condition can occupy up to 100% of the CPU's resources. |
|
As much as I don't like it, an infinite loop
does tell the CPU to do some work.
| Basically,the code in the infinite loop check a table for data every 5 minutes,if there is data.The program will do some processing and then clear the table.Then it checks the table again every 5 minutes. |
|
You are better off developing a one-run sequence program that does this check and using Task Scheduler to launch it every 5 minutes.