Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Will VFP8 take advantage of a dual processor server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00795858
Message ID:
00797194
Vues:
35
Christof,
I think a lot of us are curious if there are any real advantages to calling a .VFP. mtdll from a multithreaded client(such as an ISAPI exetension) as opposed to calling a .VFP. EXE COM server(pooled or otherwise) from a multithreaded client. Also in regards to actual dual or multiprocessors? What's your honest opinion??
>Hi Joel,
>
>>In my testing, MTDLLs are truly multi-threaded. Multiple processes can run simultaneously in a single runtime environment. This should mean lower overhead than loading up multiple EXEs.
>
>COM objects compiled as MTDLLs and such compiled as plain DLLs are identical as far as multi-threading abilities are concerned. Both can run a single DLL in multiple threads. The difference is that the DLL runtime is not thread-safe. Therefore the second thread creates a copy of the runtime DLLS and loads the copy instead. Therefore, plain DLLs require a lot more memory than MTDLLs. OTOH, instances are truly separated. In an MTDLL, multiple DLLs share the same thread local storage and therefore some environment settings in VFP. Whether or not an MTDLL truly runs in various threads, depends on the application that created them. DLLs run in the same thread as the host application. If the host isn't multithreaded, a MTDLL isn't, neither.
>
>--
>Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform