What is thread safety? - DOTNET
This is a discussion on What is thread safety? - DOTNET ; Is there anyone can explain "thread safety" in detail for me please?...
-
What is thread safety?
Is there anyone can explain "thread safety" in detail for me please?
-
Re: What is thread safety?
A peice of code is deemed thread safe, if it can be called from multiple
threads without unwanted/unexpected interaction.
This involves a lot of weird issues you have to field in a multi threaded
world. Re-entrancy problems, variables being changed unexpectedly etc. are
some examples. Certain standard programming techniques like statics become
really interesting in making a class threadsafe.
Another related topic is Thread Affinity. And hence they say, for anything
to enlist in MTS, it has to be both thread safe and not have thread
affinity. (ok I'm rambling now).
- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"Hans" <hzhang1981@sjtu.edu.cn> wrote in message
news:%238qIPgzrEHA.2580@TK2MSFTNGP15.phx.gbl...
> Is there anyone can explain "thread safety" in detail for me please?
>
>
Similar Threads
-
By Application Development in forum DOTNET
Replies: 2
Last Post: 08-12-2007, 08:51 PM
-
By Application Development in forum CSharp
Replies: 7
Last Post: 08-09-2007, 04:03 AM
-
By Application Development in forum c++
Replies: 13
Last Post: 06-08-2007, 02:34 AM
-
By Application Development in forum Python
Replies: 5
Last Post: 06-02-2007, 12:56 AM
-
By Application Development in forum DOTNET
Replies: 1
Last Post: 04-11-2007, 12:32 PM