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.

Thread safety of std::map for read-only operations

I have a std::map that I use to map values (field ID's) to a human readable string. This map …

c++ multithreading stl thread-safety stdmap
Thread-safe static variables without mutexing?

I remember reading that static variables declared inside methods is not thread-safe. (See What about the Meyer's singleton? as mentioned …

c++ boost initialization thread-safety c++03
Is Joda-Time DateTimeFormatter class thread safe?

Is the Joda-Time DateTimeFormatter class thread safe? Once I get an instance from DateTimeFormat.forPattern, can its various parse methods …

java thread-safety jodatime date-format
Inflate a view in a background thread

I have a very simple question: Is or is it not possible to inflate a view (not add it to …

android multithreading thread-safety inflate
Is Cipher thread-safe?

Quite simply, can one instance of javax.crypto.Cipher (e.g. Cipher.getInstance("RSA")) be used from multiple threads, or …

java multithreading thread-safety encryption
Is incrementing a field in MySQL atomic?

I'm making a web site where I would like to increment a counter in a standard MyISAM table. Simplified example: …

mysql thread-safety atomic increment
Mutex lock: what does "blocking" mean?

I've been reading up on multithreading and shared resources access and one of the many (for me) new concepts is …

multithreading locking thread-safety mutex blocking
C# ReaderWriterLockSlim Best Practice to Avoid Recursion

I have a class using ReaderWriterLockSlim with a read method and a write method that uses the read method to …

c# thread-safety readerwriterlockslim
Threadsafe vs Synchronized

I'm new to java. I'm little bit confused between Threadsafe and synchronized. Thread safe means that a method or class …

java multithreading synchronization thread-safety synchronized
Is SecureRandom thread safe?

Is SecureRandom thread safe? That is, after initializing it, can access to the next random number be relied on to …

java thread-safety