Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Silverlight the way forward
Message
De
21/02/2011 04:14:25
 
 
À
20/02/2011 14:35:09
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:
01501052
Vues:
64
>>>Therefore the same instance cannot be safely accessed by more than one thread.
>
>Can't be accessed by more than one thread but can be accessed by more than one apartment.
>As long as there's only one thread per apartment, it's thread-safe.

But one thread per apartment is a single threaded apartment. Which is thread safe because, in effect, COM will queue the requests.
Aren't we discussing MTDLLs where there are multiple threads per apartment all accessing the same address space. In that situation any existing VFP code is unlikely to be threadsafe. Using Sys(2336) can mitigate the problems but it's very easy to miss situations where it is required. And if you are dealing with a multi-core environment as distinct from single processor thread switching it's even more problematic.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform