title: Scala - Mutable thread safe collections
body: <p>I need a mutable thread safe Map and a mutable thread safe List in Scala. I know that the immutable collections are thread safe by default. But, I need to update my collections very often because of which I couldn't use immutable. Also I need my threadsafe mutable Map to maintain the insertion order.</p>
  
  <p>Right now am using the map below</p>
  
  <pre><code>val map = scala.collection.mutable.LinkedHashMap[String,Any]()
  </code></pre>
  
  <p>This map maintains the insertion order and is mutable. How do I make it thread safe?</p>