title: How do I set the default number of threads for Scala 2.10 parallel collections?
body: <p>In Scala before 2.10, I can set the parallelism in the defaultForkJoinPool (as in this answer <a href="https://stackoverflow.com/questions/5424496/scala-parallel-collections-degree-of-parallelism">scala parallel collections degree of parallelism</a>). In Scala 2.10, that API no longer exists. It is well documented that we can set the parallelism on a single collection (<a href="http://docs.scala-lang.org/overviews/parallel-collections/configuration.html" rel="nofollow noreferrer">http://docs.scala-lang.org/overviews/parallel-collections/configuration.html</a>) by assigning to its taskSupport property.</p>
  
  <p>However, I use parallel collections all over my codebase and would not like to add an extra two lines to every single collection instantiation. Is there some way to configure the global default thread pool size so that <code>someCollection.par.map(f(_))</code> automatically uses the default number of threads?</p>