Re: Connection pooling help

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Pablo Castro [MS] (pablocas_at_online.microsoft.com)
Date: 06/08/04


Date: Tue, 8 Jun 2004 13:37:33 -0700

Yes, it means what you say below. You cannot invoke methods of the same
instance from different threads at the same time. You CAN invoke methods
from different instances from different threads at the same time without any
synchronization.

-- 
Pablo Castro
Program Manager - ADO.NET Team
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Carl" <anonymous@discussions.microsoft.com> wrote in message
news:845502A2-97FC-4DC8-A465-0B1687B21C38@microsoft.com...
> Hi. Thanks a million. I still have one last question. On the MSDN website,
this is what is written with respect to Thread Safety for class
OracleConnection:
> "Any public static (Shared in Visual Basic) members of this type are
thread safe. Any instance members are not guaranteed to be thread safe."
> What exactly do they mean by any instance member is not guaranteed to be
thread safe? Do they mean: one instance shared by multiple threads (in other
words same as declaring it "static") is not thread safe - which does make
sense, or is it something else?
> I know I'll be asked this question, I can't answer it.
> Thanks again.
> Carl


Relevant Pages

  • Re: Microsoft Data Access Block and static methods
    ... Most of the methods in the DAB are stateless. ... are written to be thread safe, so they have to use locks where ... instance members are not safe because a single ... >I would figure it to be completely opposite - that if multiple threads ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Microsoft Data Access Block and static methods
    ... Most of the methods in the DAB are stateless. ... are written to be thread safe, so they have to use locks where ... instance members are not safe because a single ... >I would figure it to be completely opposite - that if multiple threads ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Problem with SHA256Managed when running multi-threaded
    ... Jon is right. ... Any instance members are not guaranteed to be thread safe" is ... or MS itslef is producing buggy code. ...
    (microsoft.public.dotnet.framework)
  • Re: SqlDataAdapter, SqlConnection, SqlCommand - Thread Safety
    ... TableAdapter, Connection and DataTables. ... Any instance members are not guaranteed to be thread safe. ... not sql server. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: What does Thread safe mean?
    ... Any instance members are not guaranteed to be thread safe." ... the docs about the Queue class say the following: ... Synchronized method. ...
    (microsoft.public.dotnet.languages.csharp)