How Does a Computer Know What to Do?

TIME : 2016-01-08
How Does a Computer Know What to Do?

The short answer is that instructions come from the processor, working together with the firmware and operating system that tell it which instructions to run.

The original answer here called the motherboard the brain, which is close enough in spirit — the motherboard is the board that connects everything, and the processor sitting on it is the component actually executing instructions. When you press the power button, firmware on the board runs a power-on self-test, then hands control to the bootloader, which loads the operating system from your hard drive. Shutting down reverses the sequence.

Every piece of hardware in the machine is coordinated through that chain, which is why a failure at any link stops the whole thing.