When your computer performs updates or slows down, it needs to reboot to recover. When you do this manually or automatically, something happens that you don’t think much about. “Now that’s closed, I didn’t press the button either. How did it reopen then?”
After all, we apply mechanical force to turn on the computer by pressing the power button. If our computer can do this on its own, what’s preventing it from turning on at random times when off?
First of all, when you turn off the computer, you almost say “stop” to your computer.
In this context, your computer closes the programs that remain open and warns you if there is a file that you did not save or if there is a different session open. When you choose to close without saving, these files will be lost and you will be logged out after all applications are closed.
After logging out of the user’s account, when you press the power button on the computer, the processes that start are closed one by one, and after all this cleaning is finished, the power from the power supply (PSU) is cut off. In this way, the closing process we are accustomed to is realized.
The computer also shuts down when you hold down the power button. But there is a critical difference here.
As we mentioned in the previous paragraphs; Shutting down applications, services, and other processes one by one and sequentially is skipped in this scenario and the signal is sent directly to the power supply. In this context, the computer suddenly shuts down without following any sequence.
After these two scenarios, you have to press the power button to turn on the computer.
But when you restart the computer, there is no need for such a thing and Windows restarts itself.
This is because of a command that comes into play when your computer is shutting down.
An ACPI command (a standard that specifies how the computer, peripherals, etc. communicate with each other about power usage) that kicks in just as your computer shuts down tells it to turn back on as soon as it shuts down. So far, the reset processes that we mentioned in the shutdown part take place, and the computer hardware will return to the state when they were first turned on.
In other words, your computer will do the cleaning it did when it was shut down, but this time, the green light will be on for a command that will enable it to be turned on again as soon as it is shut down.
In this way, a code is sent to the power supply that tells the system to restart instead of the power cut command.

This is where the crossroads between shutting down and restarting the computer arises. When you turn off, the power supply is told to cut off the electricity, but this command changes when you restart it.