Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Critical Section in VFP
Message
De
04/07/2000 09:26:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00387913
Message ID:
00388035
Vues:
20
John,

>This brings up something I do not understand. Take a single use exe com server in a pool for the web. It's protected from any other hit? For instance a cReturnHTML property is safe cause the server is single use? But you can have 2 or more instances going.

Yep. Each EXE's properties and methods are independent of each other with Single-Use.

>What about a multithreaded dll com server doing the same, say with ASP? Its init and destroy are initialized with each request but a property like cReturnHTML can be trampled? I'm trying to picture what is instantiated and what is separated or shared and don't get it. Thanks

Your multithreaded dll's will be built as Single-Use and run inside MTS, which handles runtime management and object instantiation for multiple requests. The multithreaded runtime allows for "thread local storage", which can keep memory for different "hits" separated.

The MTS article by Randy Brown, and also the article by Rick Strahl, may help you get the picture. Look particularly at the parts dealing with Just-In-Time Activation.

http://msdn.microsoft.com/library/default.asp?URL=/library/techart/MTSVFP.htm
http://www.west-wind.com/presentations/mts/mts.htm
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform