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?...

+ Reply to Thread
Results 1 to 2 of 2

What is thread safety?

  1. Default What is thread safety?

    Is there anyone can explain "thread safety" in detail for me please?



  2. Default 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?
    >
    >




+ Reply to Thread

Similar Threads

  1. Thread Safety?
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 08-12-2007, 08:51 PM
  2. more static + thread safety
    By Application Development in forum CSharp
    Replies: 7
    Last Post: 08-09-2007, 04:03 AM
  3. Thread safety
    By Application Development in forum c++
    Replies: 13
    Last Post: 06-08-2007, 02:34 AM
  4. Thread-safety of dict
    By Application Development in forum Python
    Replies: 5
    Last Post: 06-02-2007, 12:56 AM
  5. Constants and thread safety
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 04-11-2007, 12:32 PM