better way to detect processor's status