What is thread safety?

S

Sahil Malik

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Kotlin Thread 0
deque and thread-safety 0
What is this obfuscation? 1
Tkinter.Canvas thread safety problem? 2
Thread Safety? 2
Thread safety 0
What code is this 2
static statements and thread safety 0

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top