Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Silverlight the way forward
Message
De
20/02/2011 14:33:22
 
 
À
20/02/2011 14:22:18
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01500668
Message ID:
01500983
Vues:
63
>>>Then, since the runtimes themselves are not threadsafe, how can this work in a threadsafe manner?
>Either the calls have to be queued (which is not my idea of multithreading) or you have problems.
>
>That's not my understanding of how it works. If Mtdll uses STA then one block of memory can be shared between multiple simultaneous apartments that don't interfere with each other. It's not free-threaded, but it is thread-safe.

Hmm. So where am I wrong:
The VFP runtimes were not written as threadsafe DLLs.
Therefore the same instance cannot be safely accessed by more than one thread.
Therefore you must either queue the calls to the runtime or instantiate multiple instances.
If the former you gain no performance benifits. If the latter you eat RAM.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform