Are Predicates Thread Safe?
The Advantage of the Enumeration over a Constant Here Are Numerous: It's Thread-Safe. .. . as Rinde Mentions in the Comments, an Enum Is Serializable. That...
The advantage of the enumeration over a constant here are numerous: It's thread-safe. ... As rinde mentions in the comments, an enum is serializable. That means that you can persist your predicates for further reference.
What objects are not thread-safe?
Simple increment operations on counters are not threadsafe; to make them threadsafe you can use locks, or InterlockedIncrement. Similarly with queues. Not-threadsafe-queues can "lose" enqueues the same way that not-threadsafe counters can lose increments.
Is multithreaded thread-safe?
Thread safe: Implementation is guaranteed to be free of race conditions when accessed by multiple threads simultaneously. Conditionally safe: Different threads can access different objects simultaneously, and access to shared data is protected from race conditions.