Top "Thread-safety" questions

A piece of code is thread-safe if it only manipulates data structures in a way that allows consistent execution of this code by multiple threads.

Synchronizing on String objects in Java

I have a webapp that I am in the middle of doing some load/performance testing on, particularily on a …

java multithreading synchronization thread-safety synchronized
Is java.sql.Connection thread safe?

To rephrase the question: should I avoid sharing instances of classes which implement java.sql.Connection between different threads?

java multithreading jdbc thread-safety dbconnection
Why are local variables thread safe in Java

I was reading multi-threading in Java and I come across this Local variables are thread safe in Java. Since then …

java thread-safety
Thread Safe Properties in C#

I am trying to create thread safe properties in C# and I want to make sure that I am on …

c# .net multithreading properties thread-safety
What are alternative ways to suspend and resume a thread?

The two methods Thread.Suspend() and Thread.Resume() are obsolete since .NET 2.0. Why? What are other alternatives and any examples?

c# .net-2.0 thread-safety
-[UIApplication delegate] must be called from main thread only

This warning leads to a serious problem cause I really can't call the delegate outside of the main thread using …

ios multithreading cocoa-touch thread-safety uiapplication
Java synchronized method

Consider this code: public synchronized void onSignalsTimeout(List<SignalSpec> specs) { if (specs != null && specs.size() > 0) { …

java android multithreading thread-safety deadlock
how to make an application thread safe?

I thought thread safe, in particular, means it must satisfy the need for multiple threads to access the same shared …

c++ c multithreading concurrency thread-safety
Find if the installed PHP is threadsafe or nonthreadsafe?

How do I find out whether the installed version of PHP is threadsafe or not thread safe? Please note that …

php iis thread-safety
Threadsafe vs re-entrant

Recently, I asked a question, with title as "Is malloc thread safe?", and inside that I asked, "Is malloc re-entrant?" …

c thread-safety reentrancy