public static WorkQueue getWorkQueue ( Type type , int nThreads ) { switch ( type ) { case Simple : return new SimpleWorkQueue ( nThreads ) ; case Multi : return new MultiWorkQueue ( nThreads ) ; //case WorkStealing: default : return new MultiWorkQueue ( nThreads ) ; } }
Returns a thread - backed queue .