OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Question of performance

From: Peter Ritchie (discuss.dcomPETERRITCHIE.COM)
Date: Sat Apr 30 2005 - 09:21:32 CDT


Sounds to me like you have a queueing problem. If you've got several
threads trying to access a single-threaded apartment at the same time, only
one can get in the apartment at a time--queueing the others. Going from
apartment to apartment is going to take a bit of time on its own.

http://www.peterRitchie.com/

On Fri, 29 Apr 2005 12:55:26 +0100, Chris Trueman <ctruemanINTELLICORP.COM>
wrote:

>I have a COM server implemented in a Win32 service that runs in a
>multi-threaded apartment. I'm building an integration with a another COM
>component that is also implemented as a Win32 service, but which runs in a
>single-threaded apartment. Performance sucks. I see hundreds of threads
>being created/destroyed while the integration is processing. I am assuming
>that this is marshalling at work.
>
>I wrote a simple test program that drives the integration but from a
>single-threaded apartment and I don't get the same performance issues.
>
>Is there something I can do to resolve the marshalling issue (if that's what
>it is) without, say, implementing an external single-threaded driver program
>of the integration?
>
>All help appreciated.
>
>Thanks.
>
>
>
>Chris.
>
>----------------------------------------------------------------
>Users Guide http://discuss.microsoft.com/archives/mailfaq.html
>contains important info. Save time, search the archives at
>http://discuss.microsoft.com/archives/index.html .
>To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM