Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distributed Processing Design Question
Message
From
18/07/2006 00:19:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Miscellaneous
Thread ID:
01137136
Message ID:
01137139
Views:
14
>Hi All,
>
>I'd like to see if anyone has tried something like this before and if they'd care to share any experience.
>
>I've got a scan loop that does some fairly heavy processing, using an activeX control, which is taking about .1 seconds for each pass. I'm up to 60 records, which is starting to seem a little slow to end users. I've optimized the code as much as I can at this point.
>
>What I'm considering is a kind of multi-threaded approach in which I would create several VFP COM servers that split up the SCAN between them. IOW, the first would scan records 1 through 20, the next 21-40 and so on. The COM servers would then return their results to a shared table and set a flag in the main thread controller program to notify when they've completed.
>
>Reasonable? Will there be a measurable performance gain? Pitfalls?
>
>Thanks,
>
>-Matt

Are the different COM servers supposed to run on the same machine or on different machines? If they are on the same machine, are they going to run on the same CPU?

'cause if they run on the same CPU, it will not take less time in total, but rather more. The advantage of multithreading is not that time is saved in total, but that the user can continue doing something different while waiting.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform