I was thinking about doing this. However, this would mean that the process would stay active, and I don't want that. Should be simple enough to do. I considered doing a slight wait, maybe a second or less, but considering this is actually going to be used in a CGI, not a good idea.
You could use something similar to this to check if there are enough resources for a heavy task, and keep checking, with a maximum wait time...
In reply to Re^2: Percent of CPU/Mem Usage for User
by geekt
in thread Percent of CPU/Mem Usage for User
by geekt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |