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.

apache server reached MaxClients setting, consider raising the MaxClients setting

I am running centos 5.5 with 768mb ram. i keep getting server reached MaxClients setting, consider raising the MaxClients setting in …

performance apache thread-safety cacti
What Makes a Method Thread-safe? What are the rules?

Are there overall rules/guidelines for what makes a method thread-safe? I understand that there are probably a million one-off …

c# thread-safety
How can I make a JUnit test wait?

I have a JUnit test that I want to wait for a period of time synchronously. My JUnit test looks …

java junit thread-safety
Is iterating ConcurrentHashMap values thread safe?

In javadoc for ConcurrentHashMap is the following: Retrieval operations (including get) generally do not block, so may overlap with update …

java multithreading concurrency thread-safety concurrenthashmap
Concurrent HashSet<T> in .NET Framework?

I have the following class. class Test{ public HashSet<string> Data = new HashSet<string>(); } I need …

c# multithreading thread-safety locking mutex
C# thread safety with get/set

This is a detail question for C#. Suppose I've got a class with an object, and that object is protected …

c# locking properties thread-safety
C# Thread safe fast(est) counter

What is the way to obtain a thread safe counter in C# with best possible performance? This is as simple …

c# multithreading thread-safety counter
thread with multiple parameters

Does anyone know how to pass multiple parameters into a Thread.Start routine? I thought of extending the class, but …

c# .net multithreading parameters thread-safety
What exactly is a reentrant function?

Most of the times, the definition of reentrance is quoted from Wikipedia: A computer program or routine is described as …

c++ c recursion thread-safety reentrancy
Thread Safety in Python's dictionary

I have a class which holds a dictionary class OrderBook: orders = {'Restaurant1': None, 'Restaurant2': None, 'Restaurant3': None, …

python multithreading dictionary thread-safety