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.

What is the difference between SynchronizedCollection<T> and the other concurrent collections?

How does SynchronizedCollection<T> and the concurrent collections in the System.Collections.Concurrent namespace differ from each other, …

c# collections .net-4.0 thread-safety concurrent-collections
Fast performing and thread safe observable collection

ObservableCollections raise notifications for each action performed on them. Firstly they dont have bulk add or remove calls, secondly they …

wpf thread-safety observablecollection icollectionview
Thread Safe Efficient way to implement singleton pattern in Java?

Possible Duplicate: Efficient way to implement singleton pattern in Java I was reading this Best Singleton Implementation In Java, but …

java singleton thread-safety synchronized
Atomic properties vs thread-safe in Objective-C

In most of the discussions I've read, it indicates that making a property atomic does not guarantee it to be …

ios objective-c multithreading thread-safety atomicity
boost scoped_lock vs plain lock/unlock

I'm going to use boost::mutex from boost/thread/mutex.hpp. There are several ways to lock/unlock mutex: with …

c++ boost thread-safety mutex
How does Spring bean Handle concurrency

My web application uses Spring IOC. So all my spring beans will be singletons by default. In case if two …

spring thread-safety javabeans
Thread Safe Singletons in Java

The wikipedia article on Singletons mentions a few thread safe ways to implement the structure in Java. For my questions, …

java multithreading synchronization thread-safety singleton
C++ Thread-Safe Map

Does anyone know where I can find an implimentation that wraps a std::map and makes it thread safe? When …

c++ dictionary collections thread-safety stdmap
Is boost shared_ptr <XXX> thread safe?

I have a question about boost::shared_ptr<T>. There are lots of thread. using namespace boost; class …

c++ boost thread-safety shared-ptr boost-smart-ptr
Safety of Thread.current[] usage in rails

I keep getting conflicting opinions on the practice of storing information in the Thread.current hash (e.g., the current_…

ruby-on-rails thread-safety