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.

Are functions in the C standard library thread safe?

Where can I get a definitive answer, whether my memcpy (using the eglibc implementation that comes with Ubuntu) is thread …

c multithreading thread-safety glibc
Cordova shows an warning as " THREAD WARNING: [Your function] took [n] ms. " in iOS

"THREAD WARNING: ['Console'] took '81.661865' ms. Plugin should use a background thread." While running iOS Phonegap project. Similarly for …

ios thread-safety cordova-plugins background-thread cordova-3.8.0
Are Static classes thread safe

I have gone through msdn where it is written that all the static classes are thread safe. Well that article …

.net c#-4.0 thread-safety static-members
Is a reference assignment threadsafe?

I'm building a multi threaded cache in C#, which will hold a list of Car objects: public static IList<…

c# thread-safety
What is "Linearizability"?

Can anyone out there help me understand what Linearizability is? I need an explanation that is simple and easy to …

multithreading concurrency parallel-processing thread-safety linearizability
Is SLF4J thread-safe?

I might have a Dog class that has a single instance shared across multiple threads. I plan on using SLF4…

java logging thread-safety slf4j thread-local
Thread safety with heap-allocated memory

I was reading this: http://en.wikipedia.org/wiki/Thread_safety Is the following function thread-safe? void foo(int y){ …

c++ thread-safety heap-memory stack-memory
How do you use the Event Dispatch Thread?

I learned about how swing isn't thread-safe. Delving deeper, I discovered that every modification to a swing component must be …

java swing thread-safety event-dispatch-thread
How can I create a smart pointer that locks and unlocks a mutex?

I have a threaded class from which I would like to occasionally acquire a pointer an instance variable. I would …

c++ thread-safety mutex smart-pointers raii
Is C3P0 thread-safe?

An interruption exception (java.lang.InterruptedException) occurs as I'm trying to perform some simple read (SELECT) operations using C3P0 …

java mysql jdbc thread-safety c3p0