Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Silverlight the way forward
Message
From
21/02/2011 04:14:25
 
 
To
20/02/2011 14:35:09
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01500668
Message ID:
01501052
Views:
63
>>>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.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform