push @threads, threads->create(\&DoWork, $workQueue, $doneQueue) for 1 .. 4;