Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parallel Processing and Multi-threading
Message
De
16/10/2014 15:15:18
 
 
À
16/10/2014 13:49:53
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01609441
Message ID:
01609555
Vues:
79
PFOX lets you assign a maximum number of workers.

Our use of PFox allows a user to enter a complex item, and then immediately enter another while the processing of the first one occurs on another core (we only use it on desktops, not citrix or ts/rd). If you watch VFP in the original scenario, you see one core very busy. In this core, you see 2 or more cores very busy.

Our power users are very happy.

Hank


>"Available" being facetious AFAIK ;-)))
>There are WinAPI calls available to declare which/how many cores a process is allowed to run on. But general reccommenedation is to leave own fingers from such things as often the OS performing its job gets better results as handcra/ufted code, unless the machines the code is running on is totally identical.
>
>@Greg:
>Unless there is lots of code swapped in and out CPU caches by such MT/MP code, what is the wanted benefit ?
>
>curious
>
>thomas
>
>
>>ParallelFox runs on available cores, as per its docs, and our own observations on running applications.
>>
>>Hank
>>
>>>>>Curious,
>>>>>
>>>>>If have a multi-core machine, and run a part of my application using parallel processing technique.
>>>>>The processes are spread across the various cores. This cool. Now if implement multi-threading in the
>>>>>processes, will the multiple threads be ran in the same core that the parallel processing process this running,
>>>>>or will the system delegate the threads to other cores?
>>>>
>>>>As I understand it, the whole point of multithreading - well, one of the points - is to allow different processors or cores to share the workload. I am not sure how you implement multithreading in Visual FoxPro, though, since it doesn't have any built-in multithreading capability. At least, none that is exposed to the programmer.
>>>
>>>You are right about VFP being single threaded. But with the help of the VFP community, there are examples of implimenting multi-threading (mtmyvfp by Calvin Hsia) and Parallel Processing (ParallelFox by Joel Leach (?)). I have been adding these features to my FUnit project. I am not sure if the threads are running in on the same core that the parallel processing is running, or spread out to other cores. This would alter the length the of time the test cases take to run.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform