1. Check for Faulty Drivers
- Open Device Manager (Win + X → Device Manager)
- Update critical drivers, especially chipset, display, and network drivers
- If the issue started after a driver update, use Roll Back Driver option
2. Run Memory Diagnostics
- Press Win + R, type mdsched.exe, and press Enter
- Choose Restart now and check for problems
- Let Windows check your memory for hardware issues
- Replace any faulty RAM if errors are detected
3. Scan for Malware
- Run a full system scan using Microsoft Defender or a trusted third-party antivirus
- Remove any threats or suspicious software that could interfere with system threads
4. Repair System Files
- Open Command Prompt as Administrator
- Run the following commands one by one:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
- These tools scan and repair corrupted system files that may cause thread cleanup errors
5. Perform a Clean Boot
- Press Win + R, type msconfig, and hit Enter
- In the Services tab, check Hide all Microsoft services, then click Disable all
- Go to the Startup tab → Open Task Manager → Disable all startup items
- Reboot your PC to isolate third-party services causing the issue