your solution works like 2 threads (in best case).