A processor is a hardware component, typically a chip, that executes instructions and performs data processing tasks in a computer or electronic device.