Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hardware questions
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00691168
Message ID:
00691992
Views:
16
> But VFP itself wont run on more than one processor at a time though right?

For the most part, that is correct. If you look in task manager, you'll see that VFP has up to four threads. However, IIRC, the other threads are for minor tasks such as printing. In all practicality, VFP uses just one thread for just about everything, so it's unlikely that it will use more than one processor.

> Since you cant control the threads you can't have it going to more than one CPU at a time?

No, one cannot control how the work is distributed across processors, even with the additional threads that show up in task manager. One should treat VFP as a single-threaded app. As it relates to the original question, you can't spin off more threads because CreateThread requires a callback function, which VFP does not support. You could probably do it with a C/C++ DLL, but I've never had a reason to try. A multi-threaded DLL should do the trick if one needs to distribute work across processors.
Mike Stewart
Previous
Reply
Map
View

Click here to load this message in the networking platform