time based multithreading is working