system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: When restarting a computer, how does the computer know to turn back on after shutting itself down?
gpt
When shutting down a computer, it starts a long list of operations, such as close files, terminate programs, and so on, with the very last instruction being "turn off power".

On a restart, it does exactly the same thing, except that last instruction is "reboot".