Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ParallelFox 1.0 RC1 Released
Message
From
04/04/2011 08:57:14
 
 
To
03/04/2011 21:30:03
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Miscellaneous
Thread ID:
01505893
Message ID:
01505994
Views:
82
>
>Every process contains at least one thread, and all code executes on a thread. You can't separate the two. A process is one or more threads with its own memory space and resources isolated from other processes. One or more threads can exist within a process and share those resources (the degree to which this can be done in VFP is limited), but there is always at least one thread. Windows schedules processor time for each thread, but those threads will execute in parallel whether the threads come from one process or multiple processes. So, yes, VFP processes run just like threads because they contain threads, and that includes HyperThreading.
>
>The ParallelFox examples demonstrate that tasks run in parallel. In the Windows Task Manager, you will see that the "before" examples use the equivalent of one core (on a quad core machine, CPU usage is 25%). The "after" examples use 100% of the CPU (or close to it) and the examples take less time to execute. As I mentioned in the blog, those examples don't work well with HyperThreading.

Thanks! I'm assuming you're using something like setting the processor affinity to assign to the processes. Does this work for the virtual processors you have with hyper-threading too??
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform