Whenever Windows slows down or freezes continuously, the first culprit is assumed to be a troublesome task in the Task Manager window pushing the CPU usage high. If the task is Wifitask.exe, then here ...
High CPU activity on a Mac can be fixed by identifying resource-hungry apps in Activity Monitor and quitting them, disabling unnecessary startup items, uninstalling unused apps, restarting the Mac, ...