Lower CPU usage of threads