Threads implementation in process