ADVISOR ANSWERS
Limit CPU Usage in Microsoft Visual FoxPro
Get a solution to this common problem that's built right into Windows.
Subscribers: Sign-in to activate download link -- Get code to create job objects and methods to regulate CPU time for a process.
About this Article:
My organization has a server application that lets users create their own FoxPro scripts. The application then executes these scripts with EXECSCRIPT(). Sometimes a user manages to submit code that contains infinite loops or requires so much CPU time that the server comes to a halt. Is there a way I can limit the CPU usage for a script?
Contributing Editor Christof Wollenhaupt is an independent consultant for FoxPro development, a Microsoft Support Most Valuable Professional, and a Microsoft Certified Professional. He's a regular speaker at conferences and user group meetings and a sysop for the Compuserve MSDEVAPP forum. Christof@foxpert.com