Shared Method and Thread Safe
- From: "Robert Strickland" <bstrickland@xxxxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 13:52:26 -0500
|
I have a shared/static method that access an object from the
AppDomain. If the object is not cached, the method creates an object
reference and caches the reference into the Appdomain. Multiple threads will use
this method. I would like to make the method thread-safe by sychronizing
specific code sections in the method. Is this necessary and, if so, what is the
best way to sync critical code sections in a static
method?
|
- Follow-Ups:
- Re: Shared Method and Thread Safe
- From: Gabriel Lozano-Morán
- Re: Shared Method and Thread Safe
- Prev by Date: Re: Fast way to read string one char at a time
- Next by Date: RE: Threading Question
- Previous by thread: Re: Threading Question
- Next by thread: Re: Shared Method and Thread Safe
- Index(es):