add example for multithreading on heavy tasks