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.

Is HttpSession thread safe, are set/get Attribute thread safe operations?

Also, does the object that is being set have to be thread safe in order to guarantee that we know …

java session thread-safety synchronized
javafx, update ui from another thread

I have a javafx application, and a worker thread, implemented via javafx.concurrent.Task, that performs a long process, that …

java exception-handling thread-safety javafx-2
Is DbContext thread safe?

I was wondering if the DbContext class is thread safe, I am assuming it's not, as I am currently executing …

c# thread-safety entity-framework-4.1
Is RestTemplate thread safe?

Is a Spring RestTemplate thread-safe? That is Is a RestTemplate a Strategy object that multiple connections can safely share. or …

java spring rest thread-safety
Is Random class thread safe?

Is it valid to share one instance of the Random class between multiple threads? And to call nextInt(int) from …

java multithreading random thread-safety
Is PHP thread-safe?

Is PHP (as of 5.2) thread-safe on Linux/UNIX? Would it be possible to use it with Apache Worker-MPM or Event-MPM? …

php multithreading thread-safety
Are global variables thread-safe in Flask? How do I share data between requests?

In my application, the state of a common object is changed by making requests, and the response depends on the …

python flask thread-safety
Is it safe to call a synchronized method from another synchronized method?

If a synchronized method calls another synchronized method, is it thread safe? void synchronized method1() { method2() } void synchronized method2() { }

java thread-safety
Java Multithreading - Threadsafe Counter

I'm starting off with a very simple example in multithreading. I'm trying to make a threadsafe counter. I want to …

java multithreading thread-safety counter
Where do I get a thread-safe CollectionView?

When updating a collection of business objects on a background thread I get this error message: This type of CollectionView …

.net wpf multithreading thread-safety collectionview