Threads implementations using pipes in worker.