Implemented simple scheduler thread based on round robin scheduling.