|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Niranjay Pandey (niranjay
INDYA.COM)Date: Wed Oct 24 2001 - 01:48:56 CDT
Hi Piyush,
A Free Threaded object is also known as a multi-threaded or multi-
threaded apartment object. An application in MTS can have only one
multi-thread apartment (MTA) in it. This MTA can have zero or more
threads within it. Any objects that are marked as free threaded will
be created in the MTA, regardless of where they were created. Now,
all of this may sound great. "Wow, multiple threads! Must mean great
scalability" This is not necessarily the case. To see the problem, we
need to look at how calls are made from cone component to another.
When a call is made from one component to another component within
the same the apartment, the call is a direct function call. In the
Win32 environment, this is a very fast operation. If a call has to be
made from one apartment to another, then a proxy needs to be created
in order to make the call. What this does is add overhead to every
function call, and slows down the system. Since a free threaded
component will ALWAYS be created in the multi-threaded apartment,
even if it was created from a single thread apartment, then all calls
to access that component will have to be made by a proxy. And with
proxy calls being slower than direct calls, the performance of this
object will be reduced. This means that even though free-threaded
components sound good, they will extract a performance penalty.
No, We cannot create a Free Threaded components in VB.
Hope the int aforesaid info is sufficient !!!
Rgds,
Niranjay
---- Begin Original Message ----
From: "Piyush (Incubation Systems)" <pjain
INCSYSINC.COM>
Sent: Wed, 24 Oct 2001 09:55:55 +0530
To: DCOM
DISCUSS.MICROSOFT.COM
Subject: Free Threaded Component
Hi all,
I want to know what are free threaded components? Can we make free
threaded
components in VB? if yes then how?
Thanx
Piyush
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
---- End Original Message ----
Enjoy being an Indyan at http://www.indya.com
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]