devxlogo

Performance

Performance

Question:
I have two Visual FoxPro applications (App1 and App2) running in the same computer. App2 runs every 30 minutes. When App2 runs, App1 is slow because App2 consumes lots of CPU and memory. Can I limit the resources for App2 so that App1 won’t slow down? And, can I make App2 run as a server(in the background)?

Answer:
You might want to take a look at the SYS(3050) function. It allows you to adjust the foreground and background buffer memory size. This may free up memory for you.

You might want to add more memory to the machine.

Another thing: you say that App2 runs every 30 minutes. Does this mean that App2 is in a loop waiting for 30 minutes to pass and then performs an operation? If so, this takes up a lot more CPU time. You may want to consider doing a READ EVENTS (which will use Visual FoxPro’s event loop, and doesn’t monopolize CPU time), and then use a timer to kick off the process every 30 mins.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist