2

I am worried about the usage of scala.collection.mutable.Stack along multiple threads.

Are the methods push() and pop() of scala.collection.mutable.Stack thread-safe?

And if not what could I use instead?

1 Answer 1

4

http://www.scala-lang.org/api/current/index.html#scala.collection.mutable.SynchronizedStack

seems to provide an implementation already.

1
  • But that does mean I have to implemtn my own Stack-Type? Commented Nov 5, 2013 at 10:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.