Implement ParallelWorkQueue class.