Search code examples
javathread-safetytrove4j

Is the Trove library thread-safe?


Is the GNU trove library thread-safe? I am particularly interested in TObjectDoubleHashMap. I looked at their documentation, but it hasn't mentioned anything, so shall we assume it is not thread-safe?


Solution

  • Its not thread safe. You can use synchronized or your own Lock to make it thread safe.