Implemented dynamic sleep time for worker threads to reduce CPU load when idle