Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > What is thread safety?

Reply
Thread Tools

What is thread safety?

 
 
Hans
Guest
Posts: n/a
 
      10-11-2004
Is there anyone can explain "thread safety" in detail for me please?


 
Reply With Quote
 
 
 
 
Sahil Malik
Guest
Posts: n/a
 
      10-12-2004
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Is there anyone can explain "thread safety" in detail for me please?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminating a thread from the main thread Charles A. Lackman ASP .Net 3 12-09-2004 02:12 PM
Thread was being aborted thrown for background thread (win2003 ser =?Utf-8?B?Sm9oYW5uYQ==?= ASP .Net 3 10-15-2004 01:35 PM
Thread was being aborted in win2003 server. Back ground thread reading MS access database, no redirects or transfers. Johanna ASP .Net 0 10-13-2004 01:32 PM
"Thread was being aborted" error from WebApp using Thread.Sleep. Stephen Miller ASP .Net 3 07-01-2004 11:50 PM
perl 5.8.2/3 - thread started by a thread pawo Perl 0 02-16-2004 01:18 PM



Advertisments