Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dual core question
Message
 
To
17/05/2007 09:48:08
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01226293
Message ID:
01226560
Views:
23
Maybe, maybe not... multiple cores are tied to threads so a thread executing is usually processing on a single core. Since VFP apps are single threaded (at least your user code) it's tied to a specific thread. If you run two instances that second instance may be running on a different processor when it starts up and if it does you essentially have two VFP apps processing simultanously on separate processors. But there's no guarantee that this will actually happen. If both happen to start on the same processor there will be no benefit.

Realistically though there's always a benefit in that hte OS has multiple threads to work with and it can decide what needs resources. Probably the biggest thing about multi-processor and multi-core machines is that it is much much rarer that you hang windows due to a process (liek Explorer) misbehaving).

>Imagine writing an app that shares a table and processes a lot of math calcs.
>Compile it and name it appA
>Compile it again and name it appB
>appA uses the top half of the table
>appB uses the bottom half of the table
>Run them both at the same time
>Will the apps take advantage of the dual core?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform