RoC (restart on crash) is a functionality built into Windows that automatically restarts a Windows operating system or application when it hangs, freezes or crashes.
RoC monitors specific applications running on the system, including the operating system and constantly checks to see if they are working and responding correctly. If they are not, then RoC will shut them down and restart them. Automatic restarts preserve data integrity in the event of failure, improve emergency restart times, reduce errors and minimize complexity by eliminating reliance on user-dependent restarts. Many people prefer to disable RoC, however, because it can cause unnecessary reboots and prevent the blue screen of death (BSOD) and its accompanying error messages from displaying.
In addition, the RoC operation can create a restart loop that occurs because of a device driver, system component or hardware malfunction that causes the system to reboot in the middle of the boot process. This means that the machine never fully reboots. To ensure a complete reboot, the machine should be rebooted in safe mode, which features its own fail-safe drivers and is stable.
Keep in mind that repeated machine or system failures could signal a more serious problem, such as bad memory. In that case, it might be time to swap hardware